*fixed a mistake in var statement.

This commit is contained in:
paladin-t 2016-01-02 13:23:57 +08:00
parent 14116d1723
commit 1ef0284744
3 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,7 @@
Jan. 2 2016
Added support to apply GET statement to a class instance
Added support to access a collection by brackets
Fixed a mistake in VAR statement
Polished document
Jan. 1 2016 Version 1.2

View File

@ -11042,6 +11042,7 @@ int _core_class(mb_interpreter_t* s, void** l) {
_object_t* obj = 0;
_class_t* instance = 0;
_class_t* inherit = 0;
_class_t* last_inst = 0;
mb_assert(s && l);
@ -11061,6 +11062,9 @@ int _core_class(mb_interpreter_t* s, void** l) {
ast = ast->next;
obj = (_object_t*)ast->data;
last_inst = s->last_instance;
s->last_instance = instance;
if(_IS_FUNC(obj, _core_open_bracket)) {
/* Process meta_list */
do {
@ -11120,6 +11124,8 @@ _pop_exit:
_exit:
*l = ast;
s->last_instance = last_inst;
return result;
}

Binary file not shown.