diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-23 13:38:42 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-23 13:38:42 -0200 |
commit | 39f26b1480502cc2f75a5af6e06e5410e06634ba (patch) | |
tree | 44486f3e10a054f786ad9b8b649738996a766070 | |
parent | 3c230cc8254538d81be300d55481cdac0103e3c5 (diff) | |
download | lua-39f26b1480502cc2f75a5af6e06e5410e06634ba.tar.gz lua-39f26b1480502cc2f75a5af6e06e5410e06634ba.tar.bz2 lua-39f26b1480502cc2f75a5af6e06e5410e06634ba.zip |
more information from 'T.stacklevel'
-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 | ||