diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2020-12-15 20:51:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 20:51:38 +0100 |
commit | abfc528439f334eaea91377a46121089aa5be229 (patch) | |
tree | dc7b4681d60bb07998e408971a06f2ed51fdc5df /modules/gdscript/gdscript.cpp | |
parent | f26a765637acea98b4745d4b17d1e82961b267c1 (diff) | |
parent | c7b6a7adcc3552fd6fd2e9061ab790798dd9830a (diff) | |
download | redot-engine-abfc528439f334eaea91377a46121089aa5be229.tar.gz |
Merge pull request #43890 from vnen/gdscript-builtin-functions-refactor
GDScript: Refactor builtin functions
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
-rw-r--r-- | modules/gdscript/gdscript.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index 4425b59d62..8fa2de7063 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -2122,8 +2122,11 @@ void GDScriptLanguage::get_reserved_words(List<String> *p_words) const { w++; } - for (int i = 0; i < GDScriptFunctions::FUNC_MAX; i++) { - p_words->push_back(GDScriptFunctions::get_func_name(GDScriptFunctions::Function(i))); + List<StringName> functions; + GDScriptUtilityFunctions::get_function_list(&functions); + + for (const List<StringName>::Element *E = functions.front(); E; E = E->next()) { + p_words->push_back(String(E->get())); } } |