*fixed compile issues for last commit: "added a clear_parser parameter to the mb_run function. added an extra end of running checking after stepped."

This commit is contained in:
Wang Renxin 2017-05-14 17:10:10 +08:00
parent aa083f26fc
commit c855bea20c

View File

@ -1052,7 +1052,7 @@ static int _do_line(void) {
result = mb_load_string(bas, _code()->lines[i], false); result = mb_load_string(bas, _code()->lines[i], false);
} }
if(result == MB_FUNC_OK) if(result == MB_FUNC_OK)
result = mb_run(bas); result = mb_run(bas, true);
_printf("\n"); _printf("\n");
} else if(_str_eq(line, "BYE")) { } else if(_str_eq(line, "BYE")) {
result = MB_FUNC_BYE; result = MB_FUNC_BYE;
@ -1109,7 +1109,7 @@ static int _do_line(void) {
static void _run_file(char* path) { static void _run_file(char* path) {
if(mb_load_file(bas, path) == MB_FUNC_OK) { if(mb_load_file(bas, path) == MB_FUNC_OK) {
mb_run(bas); mb_run(bas, true);
} else { } else {
_printf("Invalid file or wrong program.\n"); _printf("Invalid file or wrong program.\n");
} }
@ -1147,7 +1147,7 @@ static void _evaluate_expression(char* p) {
p = e; p = e;
} }
if(mb_load_string(bas, p, true) == MB_FUNC_OK) { if(mb_load_string(bas, p, true) == MB_FUNC_OK) {
mb_run(bas); mb_run(bas, true);
} else { } else {
_printf("Invalid expression.\n"); _printf("Invalid expression.\n");
} }