"lua_open": now lua has an explicit open operation.

This commit is contained in:
Roberto Ierusalimschy
1997-11-04 13:27:53 -02:00
parent dad5a01fb0
commit 45cad43c3f
14 changed files with 87 additions and 133 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lauxlib.c,v 1.1 1997/09/16 19:25:59 roberto Exp roberto $
** $Id: lauxlib.c,v 1.2 1997/09/26 15:02:26 roberto Exp roberto $
** Auxiliar functions for building Lua libraries
** See Copyright Notice in lua.h
*/
@@ -67,6 +67,7 @@ lua_Object luaL_nonnullarg (int numArg)
void luaL_openlib (struct luaL_reg *l, int n)
{
int i;
lua_open(); /* make sure lua is already open */
for (i=0; i<n; i++)
lua_register(l[i].name, l[i].func);
}