summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gd_function.cpp
Commit message (Collapse)AuthorAgeFilesLines
* GDScript: Use "is" keyword for type checking.Andreas Haas2017-05-271-3/+3
| | | | | | | | | | | | | | | Replaces the `extends` keyword with `is` in the context of testing for type compatibility. `extends` is still used for declaring class inheritance. Example: ```gdscript extends Node2D func _input(ev): if ev is InputEventKey: print("yay, key event") ```
* Add extended check option to GDFunctionState::is_valid()Pedro J. Estébanez2017-05-171-3/+15
|
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* Fix random crashes when using yield()Pedro J. Estébanez2017-03-211-1/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-525/+466
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Add a bunch of missing Godot headers in own filesRémi Verschelde2017-03-051-0/+29
|
* Various fixes detected using PVS-Studio static analyzer.Thaer Razeq2017-02-281-1/+1
| | | | | | | - Add FIXME tags comments to some unfixed potential bugs - Remove some checks (always false: unsigned never < 0) - Fix some if statements based on reviews. - Bunch of missing `else` statements
* Remove bounds check when resuming from yield.Hein-Pieter van Braam2017-02-131-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
* Rename the _MD macro to D_METHODHein-Pieter van Braam2017-02-131-2/+2
| | | | | | This new name also makes its purpose a little clearer This is a step towards fixing #56
* Style: Cosmetic fixes to play nice with clang-formatRémi Verschelde2017-01-151-48/+63
|
* Both Array and Dictionary are always in shared mode (removed copy on write).Juan Linietsky2017-01-111-2/+2
|
* -GDScript support for accessing properties directlyJuan Linietsky2017-01-041-1/+41
| | | | -Added code lookup and code completion support for properties too
* ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky2017-01-021-8/+8
| | | | | | | | Variant. All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
* Renamed the bind_native functions to bind_vararg, should make it show the ↵Juan Linietsky2016-09-071-1/+1
| | | | documentation more clearly and also make it easier to bind to C#
* Brand new networked multiplayerJuan Linietsky2016-08-191-0/+1
|
* Fix #5891 by not expecting the script instance to be a GDInstanceBojidar Marinov2016-08-051-2/+1
| | | | It could be a placeholder instance as well
* 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