diff options
Diffstat (limited to 'Sluift/sluift.cpp')
-rw-r--r-- | Sluift/sluift.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Sluift/sluift.cpp b/Sluift/sluift.cpp index b2bdc29..39b92fc 100644 --- a/Sluift/sluift.cpp +++ b/Sluift/sluift.cpp @@ -127,5 +127,5 @@ static int sluift_index(lua_State* L) { return 1; } - throw Lua::Exception("Unknown property"); + return 0; } catch (const std::exception& e) { @@ -340,5 +340,5 @@ SLUIFT_API int luaopen_sluift(lua_State* L) { lua_rawgeti(L, LUA_REGISTRYINDEX, Sluift::globals.coreLibIndex); std::vector<std::string> coreLibExports = boost::assign::list_of - ("tprint")("disco")("help")("get_help")("copy"); + ("tprint")("disco")("help")("get_help")("copy")("with"); foreach (const std::string& coreLibExport, coreLibExports) { lua_getfield(L, -1, coreLibExport.c_str()); |