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 @@ -126,7 +126,7 @@ static int sluift_index(lua_State* L) { lua_pushnumber(L, Sluift::globals.timeout); return 1; } - throw Lua::Exception("Unknown property"); + return 0; } catch (const std::exception& e) { return luaL_error(L, e.what()); @@ -339,7 +339,7 @@ SLUIFT_API int luaopen_sluift(lua_State* L) { // Register convenience functions 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()); lua_setfield(L, -3, coreLibExport.c_str()); |