summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_compiler.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-05-14 17:59:34 -0300
committerGitHub <noreply@github.com>2018-05-14 17:59:34 -0300
commit47d4a011d8cacbdf95f9cae6d29db1f4dc1de734 (patch)
tree6f2376ca997b9899f37f5d25aa30d515cdd91d98 /modules/gdscript/gdscript_compiler.h
parent92f1debf0824f8eb8e2e38450dc34542be079375 (diff)
parentdecf178033d4176b0955b8efa8a081f7bccd7ed1 (diff)
downloadredot-engine-47d4a011d8cacbdf95f9cae6d29db1f4dc1de734.tar.gz
Merge pull request #18545 from vnen/editor-autoload
Enable autoload in editor
Diffstat (limited to 'modules/gdscript/gdscript_compiler.h')
-rw-r--r--modules/gdscript/gdscript_compiler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_compiler.h b/modules/gdscript/gdscript_compiler.h
index 62aafdbe01..237b0de9e7 100644
--- a/modules/gdscript/gdscript_compiler.h
+++ b/modules/gdscript/gdscript_compiler.h
@@ -94,6 +94,9 @@ class GDScriptCompiler {
HashMap<Variant, int, VariantHasher, VariantComparator> constant_map;
Map<StringName, int> name_map;
+#ifdef TOOLS_ENABLED
+ Vector<StringName> named_globals;
+#endif
int get_name_map_pos(const StringName &p_identifier) {
int ret;