diff options
author | reduz <reduzio@gmail.com> | 2015-12-28 19:31:52 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2015-12-28 19:32:51 -0300 |
commit | 30c12297dc6df7d35df140475c0cec7308aea77a (patch) | |
tree | e09c1ed46a6d42bcaab5ff4f3a67749948ff6ff7 /modules/gdscript/gd_tokenizer.cpp | |
parent | eecfeb1d7681bf9186bc231e9ee8c5d36f2afcea (diff) | |
download | redot-engine-30c12297dc6df7d35df140475c0cec7308aea77a.tar.gz |
- added 'onready' keyword to gdscript. Defers initialization of member variables until _ready() is run.
Diffstat (limited to 'modules/gdscript/gd_tokenizer.cpp')
-rw-r--r-- | modules/gdscript/gd_tokenizer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdscript/gd_tokenizer.cpp b/modules/gdscript/gd_tokenizer.cpp index e445701669..c732c00b82 100644 --- a/modules/gdscript/gd_tokenizer.cpp +++ b/modules/gdscript/gd_tokenizer.cpp @@ -851,6 +851,7 @@ void GDTokenizerText::_advance() { {TK_PR_FUNCTION,"function"}, {TK_PR_CLASS,"class"}, {TK_PR_EXTENDS,"extends"}, + {TK_PR_ONREADY,"onready"}, {TK_PR_TOOL,"tool"}, {TK_PR_STATIC,"static"}, {TK_PR_EXPORT,"export"}, @@ -1040,7 +1041,7 @@ void GDTokenizerText::advance(int p_amount) { ////////////////////////////////////////////////////////////////////////////////////////////////////// -#define BYTECODE_VERSION 5 +#define BYTECODE_VERSION 6 Error GDTokenizerBuffer::set_code_buffer(const Vector<uint8_t> & p_buffer) { |