Changeset 6670 for code/branches/gamestates2/src
- Timestamp:
- Apr 1, 2010, 1:46:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestates2/src/libraries/core/LuaState.cc
r6667 r6670 201 201 case LUA_ERRMEM: // Memory allocation error 202 202 COUT(1) << "Lua memory allocation error: Consult your dentist immediately!" << std::endl; 203 lua_pop(luaState_, 1); // Remove error message204 203 break; 205 204 } … … 213 212 { 214 213 case LUA_ERRRUN: // Runtime error 215 // Remove error string from stack(we already display the error in the214 // Do nothing (we already display the error in the 216 215 // 'errorHandler' Lua function in LuaStateInit.lua) 217 216 break; … … 223 222 break; 224 223 } 225 if (error != 0)226 lua_pop(luaState_, 1); // Remove error message227 224 } 228 225 229 226 if (error != 0) 227 { 228 lua_pop(luaState_, 1); // Remove error message 230 229 lua_pushnil(luaState_); // Push a nil return value 230 } 231 231 232 232 if (errorHandler != 0)
Note: See TracChangeset
for help on using the changeset viewer.