From 7d1499ba88fbb9275b6e5dea6005a49ff15347dd Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 22 Nov 1999 15:39:51 -0200 Subject: new macro luaL_openl --- lbuiltin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lbuiltin.c') diff --git a/lbuiltin.c b/lbuiltin.c index da8a573c..13b111de 100644 --- a/lbuiltin.c +++ b/lbuiltin.c @@ -1,5 +1,5 @@ /* -** $Id: lbuiltin.c,v 1.73 1999/11/16 12:50:48 roberto Exp roberto $ +** $Id: lbuiltin.c,v 1.74 1999/11/22 13:12:07 roberto Exp roberto $ ** Built-in functions ** See Copyright Notice in lua.h */ @@ -810,7 +810,7 @@ void luaB_predefine (lua_State *L) { /* pre-register mem error messages, to avoid loop when error arises */ luaS_newfixedstring(L, tableEM); luaS_newfixedstring(L, memEM); - luaL_openlib(L, builtin_funcs, (sizeof(builtin_funcs)/sizeof(builtin_funcs[0]))); + luaL_openl(L, builtin_funcs); lua_pushstring(L, LUA_VERSION); lua_setglobal(L, "_VERSION"); } -- cgit v1.2.3-55-g6feb