You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Inf and NaN support added to GDScript.
This commit is contained in:
@@ -120,6 +120,8 @@ const char* GDTokenizer::token_names[TK_MAX]={
|
||||
"'\\n'",
|
||||
"PI",
|
||||
"_",
|
||||
"INF",
|
||||
"NAN",
|
||||
"Error",
|
||||
"EOF",
|
||||
"Cursor"};
|
||||
@@ -901,6 +903,8 @@ void GDTokenizerText::_advance() {
|
||||
{TK_SELF,"self"},
|
||||
{TK_CONST_PI,"PI"},
|
||||
{TK_WILDCARD,"_"},
|
||||
{TK_CONST_INF,"INF"},
|
||||
{TK_CONST_NAN,"NAN"},
|
||||
{TK_ERROR,NULL}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user