diff options
author | Filippos Karapetis | 2011-01-23 14:49:50 +0000 |
---|---|---|
committer | Filippos Karapetis | 2011-01-23 14:49:50 +0000 |
commit | 00a0f8d15df8f241741e4a9a68a71641715ae062 (patch) | |
tree | d40be8437f7ca54dab9c77145bf72550bc5a3150 /engines/sword25/script/luacallback.cpp | |
parent | 411d41d3d0a3e4d14187d4a980c25c0a2e41ad9c (diff) | |
download | scummvm-rg350-00a0f8d15df8f241741e4a9a68a71641715ae062.tar.gz scummvm-rg350-00a0f8d15df8f241741e4a9a68a71641715ae062.tar.bz2 scummvm-rg350-00a0f8d15df8f241741e4a9a68a71641715ae062.zip |
SWORD25: Removed the custom log class and replaced it with warning/error/debugC calls
svn-id: r55462
Diffstat (limited to 'engines/sword25/script/luacallback.cpp')
-rw-r--r-- | engines/sword25/script/luacallback.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/sword25/script/luacallback.cpp b/engines/sword25/script/luacallback.cpp index bb2c821aa8..39ce29ea77 100644 --- a/engines/sword25/script/luacallback.cpp +++ b/engines/sword25/script/luacallback.cpp @@ -42,8 +42,6 @@ const char *CALLBACKTABLE_NAME = "__CALLBACKS"; namespace Sword25 { -#define BS_LOG_PREFIX "LUA" - LuaCallback::LuaCallback(lua_State *L) { // Create callback table lua_newtable(L); @@ -122,7 +120,7 @@ void LuaCallback::invokeCallbackFunctions(lua_State *L, uint objectHandle) { // Lua_pcall the function and the parameters pop themselves from the stack if (lua_pcall(L, argumentCount, 0, 0) != 0) { // An error has occurred - BS_LOG_ERRORLN("An error occured executing a callback function: %s", lua_tostring(L, -1)); + error("An error occured executing a callback function: %s", lua_tostring(L, -1)); // Pop error message from the stack lua_pop(L, 1); |