mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
Revert "handling of luaposix for dynamic environments"
This reverts commit5864e0bba1
. sorry, it breaks the build (the trivial #endif -> #else and additional "error: 'report' was not declared in this scope)" Origin commit data ------------------ Commit:8c88dfdc20
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de> Date: 2013-04-27 (Sat, 27 Apr 2013)
This commit is contained in:
@@ -302,13 +302,6 @@ const luaL_Reg CLuaInstance::methods[] =
|
||||
/* hack: we link against luaposix, which is included in our
|
||||
* custom built lualib */
|
||||
extern "C" { LUAMOD_API int (luaopen_posix_c) (lua_State *L); }
|
||||
#else
|
||||
static int dolibrary (lua_State *L, const char *name)
|
||||
{
|
||||
lua_getglobal(L, "require");
|
||||
lua_pushstring(L, name);
|
||||
return report(L, lua_pcall(L, 1, 0, 0));
|
||||
}
|
||||
#endif
|
||||
/* load basic functions and register our own C callbacks */
|
||||
void CLuaInstance::registerFunctions()
|
||||
@@ -321,8 +314,6 @@ void CLuaInstance::registerFunctions()
|
||||
#ifndef DYNAMIC_LUAPOSIX
|
||||
luaopen_posix_c(lua);
|
||||
#endif
|
||||
dolibrary(lua,"posix");
|
||||
#endif
|
||||
|
||||
lua_newtable(lua);
|
||||
int methodtable = lua_gettop(lua);
|
||||
|
Reference in New Issue
Block a user