Inf and NaN support added to GDScript.

This commit is contained in:
Saracen 2017-02-06 22:44:22 +00:00
parent 0f8c6dd382
commit 5e938f0001
11 changed files with 53 additions and 4 deletions

View file

@ -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