1999-01-08 19:49:32 +03:00
|
|
|
/*
|
1999-12-06 14:43:09 +03:00
|
|
|
** $Id: linit.c,v 1.2 1999/11/22 13:12:07 roberto Exp roberto $
|
1999-01-08 19:49:32 +03:00
|
|
|
** Initialization of libraries for lua.c
|
|
|
|
** See Copyright Notice in lua.h
|
|
|
|
*/
|
|
|
|
|
1999-11-22 16:12:07 +03:00
|
|
|
#define LUA_REENTRANT
|
|
|
|
|
1999-01-08 19:49:32 +03:00
|
|
|
#include "lua.h"
|
|
|
|
#include "lualib.h"
|
|
|
|
|
|
|
|
|
1999-11-22 16:12:07 +03:00
|
|
|
void lua_userinit (lua_State *L) {
|
1999-12-06 14:43:09 +03:00
|
|
|
lua_beginblock(L);
|
1999-11-22 16:12:07 +03:00
|
|
|
lua_iolibopen(L);
|
|
|
|
lua_strlibopen(L);
|
|
|
|
lua_mathlibopen(L);
|
|
|
|
lua_dblibopen(L);
|
1999-12-06 14:43:09 +03:00
|
|
|
lua_endblock(L);
|
1999-01-08 19:49:32 +03:00
|
|
|
}
|
|
|
|
|