diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-27 15:00:02 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-27 15:00:02 -0200 |
commit | 7314acaa8003fd91e59eb7c9e4333a8c3a3beb0d (patch) | |
tree | 41c6d62ff1bebf769fd439e62e0d1f6d030de4a0 | |
parent | 4b2521cd9e7cb052a04abb90557c9cfed42300df (diff) | |
download | lua-7314acaa8003fd91e59eb7c9e4333a8c3a3beb0d.tar.gz lua-7314acaa8003fd91e59eb7c9e4333a8c3a3beb0d.tar.bz2 lua-7314acaa8003fd91e59eb7c9e4333a8c3a3beb0d.zip |
'T.limits' reports some more useful limits
-rw-r--r-- | ltests.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.188 2014/10/07 18:29:13 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.189 2014/10/25 11:50:46 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 | */ |
@@ -553,8 +553,11 @@ static int listlocals (lua_State *L) { | |||
553 | static int get_limits (lua_State *L) { | 553 | static int get_limits (lua_State *L) { |
554 | lua_createtable(L, 0, 5); | 554 | lua_createtable(L, 0, 5); |
555 | setnameval(L, "BITS_INT", LUAI_BITSINT); | 555 | setnameval(L, "BITS_INT", LUAI_BITSINT); |
556 | setnameval(L, "MAXARG_Ax", MAXARG_Ax); | ||
557 | setnameval(L, "MAXARG_Bx", MAXARG_Bx); | ||
558 | setnameval(L, "MAXARG_sBx", MAXARG_sBx); | ||
559 | setnameval(L, "BITS_INT", LUAI_BITSINT); | ||
556 | setnameval(L, "LFPF", LFIELDS_PER_FLUSH); | 560 | setnameval(L, "LFPF", LFIELDS_PER_FLUSH); |
557 | setnameval(L, "MAXSTACK", MAXSTACK); | ||
558 | setnameval(L, "NUM_OPCODES", NUM_OPCODES); | 561 | setnameval(L, "NUM_OPCODES", NUM_OPCODES); |
559 | return 1; | 562 | return 1; |
560 | } | 563 | } |