diff options
| author | Rémi Verschelde | 2017-02-28 23:00:30 +0100 |
|---|---|---|
| committer | GitHub | 2017-02-28 23:00:30 +0100 |
| commit | c5df3d4d8d3d6ee74b0dad5eeb45f318c8b205a9 (patch) | |
| tree | a8e79b3f4a557ce4097791f5622728c69d22764f /modules/gdscript/gd_script.cpp | |
| parent | 0f8c6dd3822c38b8145f08265abb9eba479f4d15 (diff) | |
| parent | 5e938f000136c076f9f35b8332dc7c022687a983 (diff) | |
| download | godot-c5df3d4d8d3d6ee74b0dad5eeb45f318c8b205a9.tar.gz godot-c5df3d4d8d3d6ee74b0dad5eeb45f318c8b205a9.tar.zst godot-c5df3d4d8d3d6ee74b0dad5eeb45f318c8b205a9.zip | |
Merge pull request #7787 from SaracenOne/nan_and_inf
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 d4646aa36..4e72bc39a 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 |
