diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-11-25 13:27:51 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-11-25 13:27:51 -0200 |
commit | b0f2b288a6b860374b9578d4c51329fc9cd43022 (patch) | |
tree | 82bacf246458c8f97ec22424ff40832df67a52e5 /lua.h | |
parent | 2b25489b47ad94e6f970f5d9150937734322f24c (diff) | |
download | lua-b0f2b288a6b860374b9578d4c51329fc9cd43022.tar.gz lua-b0f2b288a6b860374b9578d4c51329fc9cd43022.tar.bz2 lua-b0f2b288a6b860374b9578d4c51329fc9cd43022.zip |
new scheme for debug info about tail calls: no more 'fake' stack entries,
but stack entry knows whether it was tail called
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.249 2009/11/09 18:55:17 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.250 2009/11/09 19:10:48 roberto Exp roberto $ |
3 | ** Lua - A Scripting Language | 3 | ** Lua - A Scripting Language |
4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) | 4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) |
5 | ** See Copyright Notice at the end of this file | 5 | ** See Copyright Notice at the end of this file |
@@ -356,7 +356,7 @@ LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); | |||
356 | #define LUA_HOOKRET 1 | 356 | #define LUA_HOOKRET 1 |
357 | #define LUA_HOOKLINE 2 | 357 | #define LUA_HOOKLINE 2 |
358 | #define LUA_HOOKCOUNT 3 | 358 | #define LUA_HOOKCOUNT 3 |
359 | #define LUA_HOOKTAILRET 4 | 359 | #define LUA_HOOKTAILCALL 4 |
360 | 360 | ||
361 | 361 | ||
362 | /* | 362 | /* |
@@ -401,6 +401,7 @@ struct lua_Debug { | |||
401 | int nups; /* (u) number of upvalues */ | 401 | int nups; /* (u) number of upvalues */ |
402 | int linedefined; /* (S) */ | 402 | int linedefined; /* (S) */ |
403 | int lastlinedefined; /* (S) */ | 403 | int lastlinedefined; /* (S) */ |
404 | char istailcall; /* (t) */ | ||
404 | char short_src[LUA_IDSIZE]; /* (S) */ | 405 | char short_src[LUA_IDSIZE]; /* (S) */ |
405 | /* private part */ | 406 | /* private part */ |
406 | struct CallInfo *i_ci; /* active function */ | 407 | struct CallInfo *i_ci; /* active function */ |