Changeset 8806 for code/branches/output/src/libraries/core/LuaState.cc
- Timestamp:
- Jul 31, 2011, 5:15:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/core/LuaState.cc
r8801 r8806 97 97 else 98 98 { 99 COUT(2) << "LuaState: Cannot include file '" << filename << "' (not found)." << std::endl;99 orxout(internal_warning, context::lua) << "LuaState: Cannot include file '" << filename << "' (not found)." << endl; 100 100 return false; 101 101 } … … 137 137 else 138 138 { 139 COUT(2) << "LuaState: Cannot do file '" << filename << "' (not found)." << std::endl;139 orxout(internal_warning, context::lua) << "LuaState: Cannot do file '" << filename << "' (not found)." << endl; 140 140 return false; 141 141 } … … 177 177 { 178 178 case LUA_ERRSYNTAX: // Syntax error 179 COUT(1) << "Lua syntax error: " << lua_tostring(luaState_, -1) << std::endl;179 orxout(internal_error, context::lua) << "Lua syntax error: " << lua_tostring(luaState_, -1) << endl; 180 180 break; 181 181 case LUA_ERRMEM: // Memory allocation error 182 COUT(1) << "Lua memory allocation error: Consult your dentist immediately!" << std::endl;182 orxout(internal_error, context::lua) << "Lua memory allocation error: Consult your dentist immediately!" << endl; 183 183 break; 184 184 } … … 201 201 std::string errorString = lua_tostring(this->luaState_, -1); 202 202 if (errorString.find("Error propagation") == std::string::npos) 203 COUT(1) << "Lua runtime error: " << errorString << std::endl;203 orxout(internal_error, context::lua) << "Lua runtime error: " << errorString << endl; 204 204 } 205 205 break; 206 206 case LUA_ERRERR: // Error in the error handler 207 COUT(1) << "Lua error in error handler. No message available." << std::endl;207 orxout(internal_error, context::lua) << "Lua error in error handler. No message available." << endl; 208 208 break; 209 209 case LUA_ERRMEM: // Memory allocation error 210 COUT(1) << "Lua memory allocation error: Consult your dentist immediately!" << std::endl;210 orxout(internal_error, context::lua) << "Lua memory allocation error: Consult your dentist immediately!" << endl; 211 211 break; 212 212 } … … 290 290 if (it->first == name || it->second == function) 291 291 { 292 COUT(2) << "Warning: Trying to add a Tolua interface with the same name or function." << std::endl;292 orxout(internal_warning, context::lua) << "Trying to add a Tolua interface with the same name or function." << endl; 293 293 return true; 294 294 } … … 309 309 if (it == getToluaInterfaces().end()) 310 310 { 311 COUT(2) << "Warning: Cannot remove Tolua interface '" << name << "': Not found" << std::endl;311 orxout(internal_warning, context::lua) << "Cannot remove Tolua interface '" << name << "': Not found" << endl; 312 312 return true; 313 313 }
Note: See TracChangeset
for help on using the changeset viewer.