diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-05-14 17:59:34 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-14 17:59:34 -0300 |
commit | 47d4a011d8cacbdf95f9cae6d29db1f4dc1de734 (patch) | |
tree | 6f2376ca997b9899f37f5d25aa30d515cdd91d98 /modules/gdscript/gdscript_function.h | |
parent | 92f1debf0824f8eb8e2e38450dc34542be079375 (diff) | |
parent | decf178033d4176b0955b8efa8a081f7bccd7ed1 (diff) | |
download | redot-engine-47d4a011d8cacbdf95f9cae6d29db1f4dc1de734.tar.gz |
Merge pull request #18545 from vnen/editor-autoload
Enable autoload in editor
Diffstat (limited to 'modules/gdscript/gdscript_function.h')
-rw-r--r-- | modules/gdscript/gdscript_function.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_function.h b/modules/gdscript/gdscript_function.h index dff4bdfaf2..ea009dcd96 100644 --- a/modules/gdscript/gdscript_function.h +++ b/modules/gdscript/gdscript_function.h @@ -92,7 +92,8 @@ public: ADDR_TYPE_STACK = 5, ADDR_TYPE_STACK_VARIABLE = 6, ADDR_TYPE_GLOBAL = 7, - ADDR_TYPE_NIL = 8 + ADDR_TYPE_NAMED_GLOBAL = 8, + ADDR_TYPE_NIL = 9 }; enum RPCMode { @@ -121,6 +122,10 @@ private: int _constant_count; const StringName *_global_names_ptr; int _global_names_count; +#ifdef TOOLS_ENABLED + const StringName *_named_globals_ptr; + int _named_globals_count; +#endif const int *_default_arg_ptr; int _default_arg_count; const int *_code_ptr; @@ -137,6 +142,9 @@ private: StringName name; Vector<Variant> constants; Vector<StringName> global_names; +#ifdef TOOLS_ENABLED + Vector<StringName> named_globals; +#endif Vector<int> default_arguments; Vector<int> code; |