Changeset 6763
- Timestamp:
- Apr 19, 2010, 6:09:10 PM (15 years ago)
- Location:
- code/trunk/src/libraries/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/GUIManager.cc
r6749 r6763 133 133 luaState_->setDefaultResourceInfo(this->rootFileInfo_); 134 134 scriptModule_.reset(new LuaScriptModule(luaState_->getInternalLuaState())); 135 scriptModule_->setDefaultPCallErrorHandler(LuaState::ERROR_HANDLER_NAME); 135 136 136 137 // Create our own logger to specify the filepath -
code/trunk/src/libraries/core/LuaState.cc
r6746 r6763 47 47 LuaState::ToluaInterfaceMap LuaState::toluaInterfaces_s; 48 48 std::vector<LuaState*> LuaState::instances_s; 49 50 const std::string LuaState::ERROR_HANDLER_NAME = "errorHandler"; 49 51 50 52 // Do this after declaring toluaInterfaces_s and instances_s to avoid larger problems … … 177 179 178 180 // Push custom error handler that uses the debugger 179 lua_getglobal(this->luaState_, "errorHandler");181 lua_getglobal(this->luaState_, ERROR_HANDLER_NAME.c_str()); 180 182 int errorHandler = lua_gettop(luaState_); 181 183 if (lua_isnil(this->luaState_, -1)) -
code/trunk/src/libraries/core/LuaState.h
r6746 r6763 100 100 static void closeToluaInterfaces(lua_State* state); 101 101 102 static const std::string ERROR_HANDLER_NAME; 103 102 104 private: 103 105 shared_ptr<ResourceInfo> getFileInfo(const std::string& filename);
Note: See TracChangeset
for help on using the changeset viewer.