diff options
-rw-r--r-- | ltests.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.231 2017/11/07 17:20:42 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.232 2017/11/09 13:31:29 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -799,8 +799,10 @@ static int stacklevel (lua_State *L) { | |||
799 | unsigned long a = 0; | 799 | unsigned long a = 0; |
800 | lua_pushinteger(L, (L->top - L->stack)); | 800 | lua_pushinteger(L, (L->top - L->stack)); |
801 | lua_pushinteger(L, (L->stack_last - L->stack)); | 801 | lua_pushinteger(L, (L->stack_last - L->stack)); |
802 | lua_pushinteger(L, L->nCcalls); | ||
803 | lua_pushinteger(L, L->nci); | ||
802 | lua_pushinteger(L, (unsigned long)&a); | 804 | lua_pushinteger(L, (unsigned long)&a); |
803 | return 3; | 805 | return 5; |
804 | } | 806 | } |
805 | 807 | ||
806 | 808 | ||