aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-06-02 12:34:00 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-06-02 12:34:00 -0300
commit475b0ecbf18be08ee824c4958ac33b7682891bbf (patch)
tree854e501480d5bc09f1c384177a399d09810de263 /lbaselib.c
parent414359b2f103f94902a59926a44eab8b46296e0d (diff)
downloadlua-475b0ecbf18be08ee824c4958ac33b7682891bbf.tar.gz
lua-475b0ecbf18be08ee824c4958ac33b7682891bbf.tar.bz2
lua-475b0ecbf18be08ee824c4958ac33b7682891bbf.zip
new macro LUA_RELEASE
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbaselib.c b/lbaselib.c
index bf3e3a39..4bd6a1f9 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.189 2006/01/18 11:49:12 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.190 2006/05/31 16:50:40 roberto Exp roberto $
3** Basic library 3** Basic library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -619,7 +619,7 @@ static void base_open (lua_State *L) {
619 lua_setglobal(L, "_G"); 619 lua_setglobal(L, "_G");
620 /* open lib into global table */ 620 /* open lib into global table */
621 luaL_register(L, "_G", base_funcs); 621 luaL_register(L, "_G", base_funcs);
622 lua_pushlstring(L, LUA_VERSION, 7); 622 lua_pushliteral(L, LUA_VERSION);
623 lua_setglobal(L, "_VERSION"); /* set global _VERSION */ 623 lua_setglobal(L, "_VERSION"); /* set global _VERSION */
624 /* `ipairs' and `pairs' need auxiliary functions as upvalues */ 624 /* `ipairs' and `pairs' need auxiliary functions as upvalues */
625 auxopen(L, "ipairs", luaB_ipairs, ipairsaux); 625 auxopen(L, "ipairs", luaB_ipairs, ipairsaux);