diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.3 2004/03/15 21:04:54 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.4 2004/03/23 17:07:53 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 | */ |
@@ -12,6 +12,7 @@ | |||
12 | #include <string.h> | 12 | #include <string.h> |
13 | 13 | ||
14 | #define ltests_c | 14 | #define ltests_c |
15 | #define LUA_CORE | ||
15 | 16 | ||
16 | #include "lua.h" | 17 | #include "lua.h" |
17 | 18 | ||
@@ -443,7 +444,7 @@ static int listlocals (lua_State *L) { | |||
443 | 444 | ||
444 | static int get_limits (lua_State *L) { | 445 | static int get_limits (lua_State *L) { |
445 | lua_createtable(L, 0, 5); | 446 | lua_createtable(L, 0, 5); |
446 | setnameval(L, "BITS_INT", BITS_INT); | 447 | setnameval(L, "BITS_INT", LUA_BITSINT); |
447 | setnameval(L, "LFPF", LFIELDS_PER_FLUSH); | 448 | setnameval(L, "LFPF", LFIELDS_PER_FLUSH); |
448 | setnameval(L, "MAXVARS", MAXVARS); | 449 | setnameval(L, "MAXVARS", MAXVARS); |
449 | setnameval(L, "MAXSTACK", MAXSTACK); | 450 | setnameval(L, "MAXSTACK", MAXSTACK); |
@@ -961,7 +962,7 @@ static int testC (lua_State *L) { | |||
961 | lua_pop(L, 1); | 962 | lua_pop(L, 1); |
962 | } | 963 | } |
963 | else if EQ("throw") { | 964 | else if EQ("throw") { |
964 | #ifdef _cplusplus | 965 | #ifdef __cplusplus |
965 | static struct X { int x; } x; | 966 | static struct X { int x; } x; |
966 | throw x; | 967 | throw x; |
967 | #else | 968 | #else |