function lua_userinit is used only in single-state mode (by lua.c)

This commit is contained in:
Roberto Ierusalimschy
2000-06-16 14:22:43 -03:00
parent e3ea307434
commit 89a3ec08f3
2 changed files with 13 additions and 15 deletions

18
linit.c
View File

@@ -1,22 +1,20 @@
/*
** $Id: linit.c,v 1.3 1999/12/06 11:43:09 roberto Exp roberto $
** $Id: linit.c,v 1.4 2000/06/12 13:52:05 roberto Exp roberto $
** Initialization of libraries for lua.c
** See Copyright Notice in lua.h
*/
#define LUA_REENTRANT
#include "lua.h"
#include "lualib.h"
void lua_userinit (lua_State *L) {
lua_beginblock(L);
lua_iolibopen(L);
lua_strlibopen(L);
lua_mathlibopen(L);
lua_dblibopen(L);
lua_endblock(L);
void lua_userinit (void) {
lua_beginblock();
lua_iolibopen();
lua_strlibopen();
lua_mathlibopen();
lua_dblibopen();
lua_endblock();
}