From c9d980fd1e4cec1973ea3e7d54ae7057e9c29e08 Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Fri, 28 Nov 2008 17:26:01 -0800 Subject: Early port under Darwin x86-64 --- src/lua-interface.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lua-interface.cpp') diff --git a/src/lua-interface.cpp b/src/lua-interface.cpp index 172a365..79307a6 100644 --- a/src/lua-interface.cpp +++ b/src/lua-interface.cpp @@ -50,6 +50,7 @@ #include "lua-interface-hc.h" #ifndef _MSVC +// this seems ignored under apple's gcc... dammit. #define WEAK __attribute__ ((weak)) #else #define WEAK @@ -308,7 +309,9 @@ int sLua_baselua_interface::baselua_interface_proceed_statics(Lua * L, int n, in break; case BASELUA_INTERFACE_LOADMODULE: filename = L->tostring(); - if ((filename == "luaconfigfiles") && (luaconfigfiles_init != NULL)) { + if (0) { +#if not defined(__APPLE__) or defined(MODULES_BUILT_IN) + } else if ((filename == "luaconfigfiles") && (luaconfigfiles_init != NULL)) { luaconfigfiles_init(L); #ifndef _MSVC } else if ((filename == "luaftgl") && (luaftgl_init != NULL)) { @@ -339,6 +342,7 @@ int sLua_baselua_interface::baselua_interface_proceed_statics(Lua * L, int n, in #ifndef _MSVC } else if ((filename == "luaosmesa") && (luaosmesa_init != NULL)) { luaosmesa_init(L); +#endif #endif } else { LuaLoadPlugin(filename, L); @@ -681,6 +685,7 @@ static void * interactive_prompt(void * __L) { } void autoload_exports(Lua * L) { +#if not defined(__APPLE__) or defined(MODULES_BUILT_IN) if (lualibs_init) lualibs_init(L); if (luahandle_init) @@ -709,6 +714,7 @@ void autoload_exports(Lua * L) { if (luaocci_init) luaocci_init(L); #endif +#endif } virtual int startup() throw (GeneralException) { -- cgit v1.2.3