From 43e684071933adef93040e8d4b830d5c6b71cf9a Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 12 Jan 2013 04:46:01 +0000 Subject: Merged branch "branches/hooks" into "trunk". git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ManualBindings.cpp | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'source/ManualBindings.cpp') diff --git a/source/ManualBindings.cpp b/source/ManualBindings.cpp index 46ebfd4ae..2af64ce53 100644 --- a/source/ManualBindings.cpp +++ b/source/ManualBindings.cpp @@ -20,17 +20,8 @@ -static bool report_errors(lua_State* lua, int status) -{ - if ( status!=0 ) - { - std::string s = lua_tostring(lua, -1); - LOGERROR("-- %s", s.c_str() ); - lua_pop(lua, 1); - return true; - } - return false; -} +// fwd: LuaCommandBinder.cpp +bool report_errors(lua_State* lua, int status); @@ -665,9 +656,9 @@ static int tolua_cPlugin_BindCommand(lua_State* tolua_S) -static int tolua_cPlugin_NewLua_AddWebTab(lua_State* tolua_S) +static int tolua_cPlugin_NewLua_AddWebTab(lua_State * tolua_S) { - cPlugin_NewLua* self = (cPlugin_NewLua*) tolua_tousertype(tolua_S,1,0); + cPlugin_NewLua * self = (cPlugin_NewLua*)tolua_tousertype(tolua_S,1,0); tolua_Error tolua_err; tolua_err.array = 0; -- cgit v1.2.3