diff options
author | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-08-29 20:02:35 -0400 |
---|---|---|
committer | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-08-29 20:02:35 -0400 |
commit | e1cdfd27cad943290a0233119548a8dd8876bd52 (patch) | |
tree | 1dc0526cc492f9112b5269511c9d634599304940 /lib/LuaBridge/Tests/Lua/Lua.5.1.5/src/linit.c | |
parent | 4ac4b280abf2ffa28caa5a532353115a3033444f (diff) |
Replaced LuaBridge with sol2 and completely encapsulated scripting within script system
Diffstat (limited to 'lib/LuaBridge/Tests/Lua/Lua.5.1.5/src/linit.c')
-rw-r--r-- | lib/LuaBridge/Tests/Lua/Lua.5.1.5/src/linit.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/LuaBridge/Tests/Lua/Lua.5.1.5/src/linit.c b/lib/LuaBridge/Tests/Lua/Lua.5.1.5/src/linit.c deleted file mode 100644 index c1f90df..0000000 --- a/lib/LuaBridge/Tests/Lua/Lua.5.1.5/src/linit.c +++ /dev/null @@ -1,38 +0,0 @@ -/* -** $Id: linit.c,v 1.14.1.1 2007/12/27 13:02:25 roberto Exp $ -** Initialization of libraries for lua.c -** See Copyright Notice in lua.h -*/ - - -#define linit_c -#define LUA_LIB - -#include "lua.h" - -#include "lualib.h" -#include "lauxlib.h" - - -static const luaL_Reg lualibs[] = { - {"", luaopen_base}, - {LUA_LOADLIBNAME, luaopen_package}, - {LUA_TABLIBNAME, luaopen_table}, - {LUA_IOLIBNAME, luaopen_io}, - {LUA_OSLIBNAME, luaopen_os}, - {LUA_STRLIBNAME, luaopen_string}, - {LUA_MATHLIBNAME, luaopen_math}, - {LUA_DBLIBNAME, luaopen_debug}, - {NULL, NULL} -}; - - -LUALIB_API void luaL_openlibs (lua_State *L) { - const luaL_Reg *lib = lualibs; - for (; lib->func; lib++) { - lua_pushcfunction(L, lib->func); - lua_pushstring(L, lib->name); - lua_call(L, 1, 0); - } -} - |