aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-27 15:00:02 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-27 15:00:02 -0200
commit7314acaa8003fd91e59eb7c9e4333a8c3a3beb0d (patch)
tree41c6d62ff1bebf769fd439e62e0d1f6d030de4a0
parent4b2521cd9e7cb052a04abb90557c9cfed42300df (diff)
downloadlua-7314acaa8003fd91e59eb7c9e4333a8c3a3beb0d.tar.gz
lua-7314acaa8003fd91e59eb7c9e4333a8c3a3beb0d.tar.bz2
lua-7314acaa8003fd91e59eb7c9e4333a8c3a3beb0d.zip
'T.limits' reports some more useful limits
-rw-r--r--ltests.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ltests.c b/ltests.c
index a2e3e05d..8db877dd 100644
--- a/ltests.c
+++ b/ltests.c
@@ -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) {
553static int get_limits (lua_State *L) { 553static 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}