summaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_tokenizer.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-01-02 17:56:45 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-01-02 17:56:45 -0300
commit61745855d0bb309cb0ebcd2d92fc15f7f6fb1840 (patch)
tree15eee761fc6fb6cbe13307056a8833a3644e410d /modules/gdscript/gd_tokenizer.cpp
parent2db78e8f87fc208711bf8625fcb679723ce46fb7 (diff)
PI is now a built-in constant, fixes #2134
Diffstat (limited to 'modules/gdscript/gd_tokenizer.cpp')
-rw-r--r--modules/gdscript/gd_tokenizer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gdscript/gd_tokenizer.cpp b/modules/gdscript/gd_tokenizer.cpp
index 61738146ae..4280c47edf 100644
--- a/modules/gdscript/gd_tokenizer.cpp
+++ b/modules/gdscript/gd_tokenizer.cpp
@@ -111,6 +111,7 @@ const char* GDTokenizer::token_names[TK_MAX]={
"'?'",
"':'",
"'\\n'",
+"PI",
"Error",
"EOF",
"Cursor"};
@@ -878,6 +879,7 @@ void GDTokenizerText::_advance() {
{TK_CF_RETURN,"return"},
{TK_CF_PASS,"pass"},
{TK_SELF,"self"},
+ {TK_CONST_PI,"PI"},
{TK_ERROR,NULL}
};
@@ -1044,7 +1046,7 @@ void GDTokenizerText::advance(int p_amount) {
//////////////////////////////////////////////////////////////////////////////////////////////////////
-#define BYTECODE_VERSION 8
+#define BYTECODE_VERSION 9
Error GDTokenizerBuffer::set_code_buffer(const Vector<uint8_t> & p_buffer) {