summaryrefslogtreecommitdiff
path: root/core
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 /core
parent92f1debf0824f8eb8e2e38450dc34542be079375 (diff)
parentdecf178033d4176b0955b8efa8a081f7bccd7ed1 (diff)
Merge pull request #18545 from vnen/editor-autoload
Enable autoload in editor
Diffstat (limited to 'core')
-rw-r--r--core/script_language.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/script_language.h b/core/script_language.h
index 55a20c7478..b4c55cac9e 100644
--- a/core/script_language.h
+++ b/core/script_language.h
@@ -236,6 +236,8 @@ public:
virtual void auto_indent_code(String &p_code, int p_from_line, int p_to_line) const = 0;
virtual void add_global_constant(const StringName &p_variable, const Variant &p_value) = 0;
+ virtual void add_named_global_constant(const StringName &p_name, const Variant &p_value) {}
+ virtual void remove_named_global_constant(const StringName &p_name) {}
/* MULTITHREAD FUNCTIONS */