diff options
author | reduz <reduzio@gmail.com> | 2015-12-29 12:11:21 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2015-12-29 12:11:21 -0300 |
commit | 7d2d1442f83e6a7a57a1823a6cf5af53e5419d5f (patch) | |
tree | 06c26e9630e74b88bc860ad8e824855e85c03791 /modules/gdscript/gd_tokenizer.cpp | |
parent | 99736e63e45b323d06411926bd92210a08c717c2 (diff) | |
download | redot-engine-7d2d1442f83e6a7a57a1823a6cf5af53e5419d5f.tar.gz |
-add breakpoint statement to ease with debugging, closes #3165
Diffstat (limited to 'modules/gdscript/gd_tokenizer.cpp')
-rw-r--r-- | modules/gdscript/gd_tokenizer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gdscript/gd_tokenizer.cpp b/modules/gdscript/gd_tokenizer.cpp index c732c00b82..39c7f3cfc4 100644 --- a/modules/gdscript/gd_tokenizer.cpp +++ b/modules/gdscript/gd_tokenizer.cpp @@ -98,6 +98,7 @@ const char* GDTokenizer::token_names[TK_MAX]={ "assert", "yield", "signal", +"breakpoint", "'['", "']'", "'{'", @@ -861,6 +862,7 @@ void GDTokenizerText::_advance() { {TK_PR_ASSERT,"assert"}, {TK_PR_YIELD,"yield"}, {TK_PR_SIGNAL,"signal"}, + {TK_PR_BREAKPOINT,"breakpoint"}, {TK_PR_CONST,"const"}, //controlflow {TK_CF_IF,"if"}, @@ -1041,7 +1043,7 @@ void GDTokenizerText::advance(int p_amount) { ////////////////////////////////////////////////////////////////////////////////////////////////////// -#define BYTECODE_VERSION 6 +#define BYTECODE_VERSION 7 Error GDTokenizerBuffer::set_code_buffer(const Vector<uint8_t> & p_buffer) { |