diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-20 11:10:38 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-20 11:10:38 -0200 |
commit | d61d5bef9d13bb9ed184edd08f2dabd7c4399b7a (patch) | |
tree | 5ce939528647b8ca561b4f408f880165eba8bf70 | |
parent | 4450efc97e8ca236cdb076733e8078d6c1ba0f36 (diff) | |
download | lua-d61d5bef9d13bb9ed184edd08f2dabd7c4399b7a.tar.gz lua-d61d5bef9d13bb9ed184edd08f2dabd7c4399b7a.tar.bz2 lua-d61d5bef9d13bb9ed184edd08f2dabd7c4399b7a.zip |
details
-rw-r--r-- | lbuiltin.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbuiltin.c,v 1.84 1999/12/14 18:31:20 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.85 1999/12/14 18:42:57 roberto Exp roberto $ |
3 | ** Built-in functions | 3 | ** Built-in functions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -29,14 +29,10 @@ | |||
29 | 29 | ||
30 | 30 | ||
31 | 31 | ||
32 | #ifdef DEBUG | ||
33 | /* | 32 | /* |
34 | ** function defined in ltests.c, to open some internal-test functions | 33 | ** function defined in ltests.c, to open some internal-test functions |
35 | */ | 34 | */ |
36 | void luaB_opentests (lua_State *L); | 35 | void luaB_opentests (lua_State *L); |
37 | #else | ||
38 | #define luaB_opentests(L) /* do nothing */ | ||
39 | #endif | ||
40 | 36 | ||
41 | 37 | ||
42 | 38 | ||
@@ -656,7 +652,9 @@ void luaB_predefine (lua_State *L) { | |||
656 | luaS_newfixed(L, tableEM); | 652 | luaS_newfixed(L, tableEM); |
657 | luaS_newfixed(L, memEM); | 653 | luaS_newfixed(L, memEM); |
658 | luaL_openl(L, builtin_funcs); | 654 | luaL_openl(L, builtin_funcs); |
659 | luaB_opentests(L); /* internal test functions (when DEBUG is on) */ | 655 | #ifdef DEBUG |
656 | luaB_opentests(L); /* internal test functions */ | ||
657 | #endif | ||
660 | lua_pushstring(L, LUA_VERSION); | 658 | lua_pushstring(L, LUA_VERSION); |
661 | lua_setglobal(L, "_VERSION"); | 659 | lua_setglobal(L, "_VERSION"); |
662 | } | 660 | } |