diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-22 15:39:51 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-22 15:39:51 -0200 |
commit | 7d1499ba88fbb9275b6e5dea6005a49ff15347dd (patch) | |
tree | 3effbdda4848b26de22e12d8dd14d6c9e3da518b /lbuiltin.c | |
parent | 29ede6aa13144ff7b69c57a87be1ee93f57ae896 (diff) | |
download | lua-7d1499ba88fbb9275b6e5dea6005a49ff15347dd.tar.gz lua-7d1499ba88fbb9275b6e5dea6005a49ff15347dd.tar.bz2 lua-7d1499ba88fbb9275b6e5dea6005a49ff15347dd.zip |
new macro luaL_openl
Diffstat (limited to 'lbuiltin.c')
-rw-r--r-- | lbuiltin.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbuiltin.c,v 1.73 1999/11/16 12:50:48 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.74 1999/11/22 13:12:07 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 | */ |
@@ -810,7 +810,7 @@ void luaB_predefine (lua_State *L) { | |||
810 | /* pre-register mem error messages, to avoid loop when error arises */ | 810 | /* pre-register mem error messages, to avoid loop when error arises */ |
811 | luaS_newfixedstring(L, tableEM); | 811 | luaS_newfixedstring(L, tableEM); |
812 | luaS_newfixedstring(L, memEM); | 812 | luaS_newfixedstring(L, memEM); |
813 | luaL_openlib(L, builtin_funcs, (sizeof(builtin_funcs)/sizeof(builtin_funcs[0]))); | 813 | luaL_openl(L, builtin_funcs); |
814 | lua_pushstring(L, LUA_VERSION); | 814 | lua_pushstring(L, LUA_VERSION); |
815 | lua_setglobal(L, "_VERSION"); | 815 | lua_setglobal(L, "_VERSION"); |
816 | } | 816 | } |