forked from xxq250/Nasal-Interpreter
⚡ add stl/json.nas & fix bug
bug: may cause program crash if stack overflow occurs on main stack
This commit is contained in:
@@ -1035,6 +1035,7 @@ vmexit:
|
||||
if(top<canary)\
|
||||
goto *code[++pc];\
|
||||
die("stack overflow");\
|
||||
goto *code[++pc];\
|
||||
}
|
||||
// do not cause stackoverflow
|
||||
#define exec_nodie(op) {op();goto *code[++pc];}
|
||||
|
||||
Reference in New Issue
Block a user