summaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_compiler.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-06-01 20:22:02 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-06-01 20:31:42 -0300
commit9e745b920fec25f1088ae0377a8d87a87136a5f7 (patch)
tree67c35840fb0eee8b380fafdbe46b696925d0f1fd /modules/gdscript/gd_compiler.h
parent45752eaae4a97b93c794651aa1b8dfec3c4f4d95 (diff)
Ability to reload scripts on running game
Diffstat (limited to 'modules/gdscript/gd_compiler.h')
-rw-r--r--modules/gdscript/gd_compiler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gd_compiler.h b/modules/gdscript/gd_compiler.h
index 32e18c6dcf..7cf575e3d6 100644
--- a/modules/gdscript/gd_compiler.h
+++ b/modules/gdscript/gd_compiler.h
@@ -144,7 +144,7 @@ class GDCompiler {
int _parse_expression(CodeGen& codegen,const GDParser::Node *p_expression, int p_stack_level,bool p_root=false,bool p_initializer=false);
Error _parse_block(CodeGen& codegen,const GDParser::BlockNode *p_block,int p_stack_level=0,int p_break_addr=-1,int p_continue_addr=-1);
Error _parse_function(GDScript *p_script,const GDParser::ClassNode *p_class,const GDParser::FunctionNode *p_func,bool p_for_ready=false);
- Error _parse_class(GDScript *p_script,GDScript *p_owner,const GDParser::ClassNode *p_class);
+ Error _parse_class(GDScript *p_script,GDScript *p_owner,const GDParser::ClassNode *p_class,bool p_keep_state);
int err_line;
int err_column;
StringName source;
@@ -152,7 +152,7 @@ class GDCompiler {
public:
- Error compile(const GDParser *p_parser,GDScript *p_script);
+ Error compile(const GDParser *p_parser, GDScript *p_script, bool p_keep_state=false);
String get_error() const;
int get_error_line() const;