diff options
author | Saracen <SaracenOne@gmail.com> | 2017-02-06 22:44:22 +0000 |
---|---|---|
committer | Saracen <SaracenOne@gmail.com> | 2017-02-28 21:52:33 +0000 |
commit | 5e938f000136c076f9f35b8332dc7c022687a983 (patch) | |
tree | a8e79b3f4a557ce4097791f5622728c69d22764f /modules/gdscript/gd_script.cpp | |
parent | 0f8c6dd3822c38b8145f08265abb9eba479f4d15 (diff) | |
download | redot-engine-5e938f000136c076f9f35b8332dc7c022687a983.tar.gz |
Inf and NaN support added to GDScript.
Diffstat (limited to 'modules/gdscript/gd_script.cpp')
-rw-r--r-- | modules/gdscript/gd_script.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp index d4646aa36d..4e72bc39a4 100644 --- a/modules/gdscript/gd_script.cpp +++ b/modules/gdscript/gd_script.cpp @@ -1517,6 +1517,8 @@ void GDScriptLanguage::init() { } _add_global(StaticCString::create("PI"),Math_PI); + _add_global(StaticCString::create("INF"),Math_INF); + _add_global(StaticCString::create("NAN"),Math_NAN); //populate native classes @@ -1909,6 +1911,8 @@ void GDScriptLanguage::get_reserved_words(List<String> *p_words) const { "bool", "null", "PI", + "INF", + "NAN", "self", "true", // functions |