summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gd_tokenizer.cpp
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2015-12-29 12:11:21 -0300
committerreduz <reduzio@gmail.com>2015-12-29 12:11:21 -0300
commit7d2d1442f83e6a7a57a1823a6cf5af53e5419d5f (patch)
tree06c26e9630e74b88bc860ad8e824855e85c03791 /modules/gdscript/gd_tokenizer.cpp
parent99736e63e45b323d06411926bd92210a08c717c2 (diff)
downloadredot-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.cpp4
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) {