Skip to content

Commit

Permalink
improve OOP lua_class debug asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
qaisjp committed Jul 30, 2016
1 parent d4de1a2 commit cd41194
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MTA10/mods/shared_logic/lua/LuaCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ void lua_classfunction ( lua_State* luaVM, const char* szFunction, const char* f
lua_classfunction ( luaVM, szFunction, pFunction->GetFunctionAddress () );
}
else
dassert ( false );
dassert ( "lua_classfunction function does not exist" && 0 );
}

void lua_classvariable ( lua_State* luaVM, const char* szVariable, lua_CFunction set, lua_CFunction get )
Expand Down Expand Up @@ -404,7 +404,7 @@ void lua_classvariable ( lua_State* luaVM, const char* szVariable, const char* s
if ( CLuaCFunction* pSet = CLuaCFunctions::GetFunction ( set ) )
fnSet = pSet->GetFunctionAddress ();
else
dassert ( false );
dassert ( "lua_classvariable set function does not exist" && 0 );
}


Expand All @@ -413,7 +413,7 @@ void lua_classvariable ( lua_State* luaVM, const char* szVariable, const char* s
if ( CLuaCFunction* pGet = CLuaCFunctions::GetFunction ( get ) )
fnGet = pGet->GetFunctionAddress ();
else
dassert ( false );
dassert ( "lua_classvariable get function does not exist" && 0 );
}


Expand Down

0 comments on commit cd41194

Please sign in to comment.