Bug: Lua source should not use C99 comments ("//")

This commit is contained in:
Roberto Ierusalimschy 2021-04-10 10:19:21 -03:00
parent 47cffdc723
commit d205f3a484
1 changed files with 4 additions and 2 deletions

6
lvm.c
View File

@ -1156,8 +1156,10 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
Instruction i; /* instruction being executed */ Instruction i; /* instruction being executed */
StkId ra; /* instruction's A register */ StkId ra; /* instruction's A register */
vmfetch(); vmfetch();
// low-level line tracing for debugging Lua #if 0
// printf("line: %d\n", luaG_getfuncline(cl->p, pcRel(pc, cl->p))); /* low-level line tracing for debugging Lua */
printf("line: %d\n", luaG_getfuncline(cl->p, pcRel(pc, cl->p)));
#endif
lua_assert(base == ci->func + 1); lua_assert(base == ci->func + 1);
lua_assert(base <= L->top && L->top < L->stack_last); lua_assert(base <= L->top && L->top < L->stack_last);
/* invalidate top for instructions not expecting it */ /* invalidate top for instructions not expecting it */