no-nonsense debug information about tail calls

This commit is contained in:
Roberto Ierusalimschy
2003-02-27 08:52:30 -03:00
parent 5cd99b82b7
commit 92f6e0c1bf
7 changed files with 102 additions and 74 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.h,v 1.107 2002/11/22 18:01:46 roberto Exp roberto $
** $Id: lstate.h,v 1.108 2002/11/25 17:47:13 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -80,6 +80,7 @@ typedef struct CallInfo {
struct { /* for Lua functions */
const Instruction *savedpc;
const Instruction **pc; /* points to `pc' variable in `luaV_execute' */
int tailcalls; /* number of tail calls lost under this entry */
} l;
struct { /* for C functions */
int dummy; /* just to avoid an empty struct */