From c497a34536bb896bbf046cee5d1cbb0eb30be559 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 10 Feb 2013 14:37:23 +0000 Subject: Fixed ASSERT / VERIFY mismatch in ManualBindings' error handling git-svn-id: http://mc-server.googlecode.com/svn/trunk@1206 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ManualBindings.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/ManualBindings.cpp') diff --git a/source/ManualBindings.cpp b/source/ManualBindings.cpp index b7d31a79d..63697f8dd 100644 --- a/source/ManualBindings.cpp +++ b/source/ManualBindings.cpp @@ -35,8 +35,8 @@ int tolua_do_error(lua_State* L, const char * a_pMsg, tolua_Error * a_pToLuaErro { // Retrieve current function name lua_Debug entry; - ASSERT( lua_getstack(L, 0, &entry) ); - ASSERT( lua_getinfo(L, "n", &entry) ); + VERIFY(lua_getstack(L, 0, &entry)); + VERIFY(lua_getinfo(L, "n", &entry)); // Insert function name into error msg AString msg(a_pMsg); @@ -55,8 +55,8 @@ int lua_do_error(lua_State* L, const char * a_pFormat, ...) { // Retrieve current function name lua_Debug entry; - ASSERT( lua_getstack(L, 0, &entry) ); - ASSERT( lua_getinfo(L, "n", &entry) ); + VERIFY(lua_getstack(L, 0, &entry)); + VERIFY(lua_getinfo(L, "n", &entry)); // Insert function name into error msg AString msg(a_pFormat); -- cgit v1.2.3