mirror of
https://github.com/ccxvii/mujs.git
synced 2026-02-05 17:29:43 +08:00
Bug 705052: Don't use private STACK/TOP macros in jsstate.c
These convenience macros are defined and used in jsrun.c, and should not be used in other files.
This commit is contained in:
@@ -10,9 +10,9 @@
|
||||
|
||||
static int js_ptry(js_State *J) {
|
||||
if (J->trytop == JS_TRYLIMIT) {
|
||||
STACK[TOP].type = JS_TLITSTR;
|
||||
STACK[TOP].u.litstr = "exception stack overflow";
|
||||
++TOP;
|
||||
J->stack[J->top].type = JS_TLITSTR;
|
||||
J->stack[J->top].u.litstr = "exception stack overflow";
|
||||
++J->top;
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user