diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lua-interface.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lua-interface.cpp b/src/lua-interface.cpp index 3387c00..4dc7129 100644 --- a/src/lua-interface.cpp +++ b/src/lua-interface.cpp @@ -71,6 +71,7 @@ extern void luasql_init(Lua * L) WEAK; extern void luatask_init(Lua * L) WEAK; extern void luaxml_init(Lua * L) WEAK; extern void luaosmesa_init(Lua * L) WEAK; +extern void luacd_init(Lua * L) WEAK; } @@ -311,7 +312,7 @@ int sLua_baselua_interface::baselua_interface_proceed_statics(Lua * L, int n, in case BASELUA_INTERFACE_LOADMODULE: filename = L->tostring(); if (0) { -#if not defined(__APPLE__) or defined(MODULES_BUILT_IN) +#if !(defined(__APPLE__) || defined(MODULES_BUILT_IN)) } else if ((filename == "luaconfigfiles") && (luaconfigfiles_init != NULL)) { luaconfigfiles_init(L); #ifndef _MSVC @@ -344,6 +345,8 @@ int sLua_baselua_interface::baselua_interface_proceed_statics(Lua * L, int n, in } else if ((filename == "luaosmesa") && (luaosmesa_init != NULL)) { luaosmesa_init(L); #endif + } else if ((filename == "luacd") && (luacd_init != NULL)) { + luacd_init(L); #endif } else { LuaLoadPlugin(filename, L); @@ -715,6 +718,8 @@ void autoload_exports(Lua * L) { if (luaocci_init) luaocci_init(L); #endif + if (luacd_init) + luacd_init(L); #endif } |