diff options
Diffstat (limited to '')
-rw-r--r-- | lvm.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1175,8 +1175,12 @@ void luaV_execute (lua_State *L, CallInfo *ci) { | |||
1175 | Instruction i; /* instruction being executed */ | 1175 | Instruction i; /* instruction being executed */ |
1176 | vmfetch(); | 1176 | vmfetch(); |
1177 | #if 0 | 1177 | #if 0 |
1178 | /* low-level line tracing for debugging Lua */ | 1178 | { /* low-level line tracing for debugging Lua */ |
1179 | printf("line: %d\n", luaG_getfuncline(cl->p, pcRel(pc, cl->p))); | 1179 | #include "lopnames.h" |
1180 | int pcrel = pcRel(pc, cl->p); | ||
1181 | printf("line: %d; %s (%d)\n", luaG_getfuncline(cl->p, pcrel), | ||
1182 | opnames[GET_OPCODE(i)], pcrel); | ||
1183 | } | ||
1180 | #endif | 1184 | #endif |
1181 | lua_assert(base == ci->func.p + 1); | 1185 | lua_assert(base == ci->func.p + 1); |
1182 | lua_assert(base <= L->top.p && L->top.p <= L->stack_last.p); | 1186 | lua_assert(base <= L->top.p && L->top.p <= L->stack_last.p); |