diff options
author | Pixel <pixel@nobis-crew.org> | 2009-04-13 10:09:54 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-04-13 10:11:22 -0700 |
commit | feb84eae5b4ed3a3c66f1534b28eefd70e08075e (patch) | |
tree | df4694729d46817041f0968d132c610345b2135c /src | |
parent | 62cf261d827be654ce77d78a567bbd9854964cb6 (diff) |
Adding the cd-tool interface to lua-interface's built-in compilation.
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 } |