From 3bc6c16227911b38bb2448f5839aac7280e17885 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sat, 31 Jul 2010 13:54:46 -0500 Subject: [PATCH] allow packages from Lua --- src/LuaManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LuaManager.cpp b/src/LuaManager.cpp index ef9cfb5751..32cef86941 100644 --- a/src/LuaManager.cpp +++ b/src/LuaManager.cpp @@ -251,12 +251,12 @@ LuaManager::LuaManager() lua_pushcfunction( L, luaopen_string ); lua_call( L, 0, 0 ); lua_pushcfunction( L, luaopen_table ); lua_call( L, 0, 0 ); lua_pushcfunction( L, luaopen_debug ); lua_call( L, 0, 0 ); - // these three can be dangerous. don't use them + lua_pushcfunction( L, luaopen_package ); lua_call( L, 0, 0 ); // this one seems safe -shake + // these two can be dangerous. don't use them // (unless you know what you are doing). -aj #if 0 lua_pushcfunction( L, luaopen_io ); lua_call( L, 0, 0 ); lua_pushcfunction( L, luaopen_os ); lua_call( L, 0, 0 ); - lua_pushcfunction( L, luaopen_package ); lua_call( L, 0, 0 ); #endif // Store the thread pool in a table on the stack, in the main thread.