1
0
Fork 0

Fixed ASSERT / VERIFY mismatch in ManualBindings' error handling

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1206 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2013-02-10 14:37:23 +00:00
parent 576f8589c0
commit c497a34536
1 changed files with 4 additions and 4 deletions

View File

@ -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);