diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lua-interface.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lua-interface.cpp b/src/lua-interface.cpp index 4b1e949..0fef98a 100644 --- a/src/lua-interface.cpp +++ b/src/lua-interface.cpp @@ -84,6 +84,10 @@ extern void luacd_init(Lua * L) WEAK; #define main dll_main #endif +#ifdef LUA_INTERFACE_LIGHT +#define MODULES_BUILT_IN +#endif + #ifdef _WIN32 #include <windows.h> @@ -320,12 +324,14 @@ int sLua_baselua_interface::baselua_interface_proceed_statics(Lua * L, int n, in #if !(defined(NO_SMART_MODULES) || defined(MODULES_BUILT_IN)) } else if ((filename == "luaconfigfiles") && (luaconfigfiles_init != NULL)) { luaconfigfiles_init(L); +#ifndef LUA_INTERFACE_LIGHT #ifndef _MSVC } else if ((filename == "luaftgl") && (luaftgl_init != NULL)) { luaftgl_init(L); } else if ((filename == "luagl") && (luagl_init != NULL)) { luagl_init(L); #endif +#endif } else if ((filename == "luahandle") && (luahandle_init != NULL)) { luahandle_init(L); } else if ((filename == "luahttp") && (luahttp_init != NULL)) { @@ -334,18 +340,23 @@ int sLua_baselua_interface::baselua_interface_proceed_statics(Lua * L, int n, in luasmtp_init(L); } else if ((filename == "lualibs") && (lualibs_init != NULL)) { lualibs_init(L); +#ifndef LUA_INTERFACE_LIGHT #ifndef _MSVC } else if ((filename == "luaocci") && (luaocci_init != NULL)) { luaocci_init(L); #endif +#endif } else if ((filename == "luaregex") && (luaregex_init != NULL)) { luaregex_init(L); +#ifndef LUA_INTERFACE_LIGHT } else if ((filename == "luasql") && (luasql_init != NULL)) { luasql_init(L); +#endif } else if ((filename == "luatask") && (luatask_init != NULL)) { luatask_init(L); } else if ((filename == "luaxml") && (luaxml_init != NULL)) { luaxml_init(L); +#ifndef LUA_INTERFACE_LIGHT #ifndef _MSVC } else if ((filename == "luaosmesa") && (luaosmesa_init != NULL)) { luaosmesa_init(L); @@ -353,6 +364,7 @@ int sLua_baselua_interface::baselua_interface_proceed_statics(Lua * L, int n, in } else if ((filename == "luacd") && (luacd_init != NULL)) { luacd_init(L); #endif +#endif } else { LuaLoadPlugin(filename, L); } @@ -707,12 +719,15 @@ void autoload_exports(Lua * L) { luasmtp_init(L); if (luaregex_init) luaregex_init(L); +#ifndef LUA_INTERFACE_LIGHT if (luasql_init) luasql_init(L); +#endif if (luatask_init) luatask_init(L); if (luaxml_init) luaxml_init(L); +#ifndef LUA_INTERFACE_LIGHT #ifndef _MSVC if (luaftgl_init) luaftgl_init(L); @@ -726,6 +741,7 @@ void autoload_exports(Lua * L) { if (luacd_init) luacd_init(L); #endif +#endif } virtual int startup() throw (GeneralException) { |