aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_function.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add extended check option to GDFunctionState::is_valid()Pedro J. Estébanez2017-05-171-3/+15
|
* Fix random crashes when using yield()Pedro J. Estébanez2017-03-211-1/+1
|
* Bring that Whole New World to the Old Continent tooRémi Verschelde2017-03-191-547/+503
| | | | | Applies the clang-format style to the 2.1 branch as done for master in 5dbf1809c6e3e905b94b8764e99491e608122261.
* Remove bounds check when resuming from yield.Hein-Pieter van Braam2017-03-181-1/+1
| | | | | | | | | | | | | | | | The code would get a pointer to the beginning of the call_args by using operator[] at the stack Vector. This does bound checking. When there are no call_args this bound check fails and the error mentioned in #7796 gets triggered. This bound check is actually not necessary as call_args just gets set to NULL and never dereferenced. This new code will just unconditionally set the pointer to the place where the call_args are if there are any. There is no NULL check for call_args anywhere so this is safe. Fixes #7796 (cherry picked from commit e8611966de4dfc9c28a7a4de1798f3f10ff87f80)
* Fix #5891 by not expecting the script instance to be a GDInstanceBojidar Marinov2016-08-081-2/+1
| | | | | | It could be a placeholder instance as well (cherry picked from commit 76ea995228df510bfd4212e29f7cb76f13e25fb5)
* Warn instad of crashing when class instance is gone after yield. Closes ↵Juan Linietsky2016-06-291-0/+25
| | | | #5247 , probably closes other yield related crashes
* Property reporty base type when a function fails, fixes #4581 probably also ↵Juan Linietsky2016-06-201-2/+2
| | | | closes other issues
* Made many built-in gdscript functions return more descriptive errors, closes ↵Juan Linietsky2016-06-111-1/+6
| | | | #5150
* Some cleanup to GDScriptJuan Linietsky2016-05-311-0/+1429
separated GDFunction (VM) from GDScript in two different files