summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-04-10 10:19:21 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-04-10 10:19:21 -0300
commitd205f3a4847bc8b835fda91f51ba1cf45b796baf (patch)
treef67f289e1e57b968e57990d757bc81879106dec9
parent47cffdc723c2e0c6dfaf62b7775ca1c1d338c0a4 (diff)
downloadlua-github-d205f3a4847bc8b835fda91f51ba1cf45b796baf.tar.gz
Bug: Lua source should not use C99 comments ("//")
-rw-r--r--lvm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lvm.c b/lvm.c
index c9729bcc..16e01d68 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1156,8 +1156,10 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
Instruction i; /* instruction being executed */
StkId ra; /* instruction's A register */
vmfetch();
-// low-level line tracing for debugging Lua
-// printf("line: %d\n", luaG_getfuncline(cl->p, pcRel(pc, cl->p)));
+ #if 0
+ /* 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 <= L->top && L->top < L->stack_last);
/* invalidate top for instructions not expecting it */