コード例 #1
0
ファイル: LuaCommon.cpp プロジェクト: AdiBoy/mtasa-blue
void lua_classfunction ( lua_State* luaVM, const char* szFunction, const char* fn )
{
    CLuaCFunction* pFunction = CLuaCFunctions::GetFunction ( fn );
    if ( pFunction )
    {
        lua_classfunction ( luaVM, szFunction, pFunction->GetFunctionAddress () );
    }
}
コード例 #2
0
void lua_classfunction ( lua_State* luaVM, const char* szFunction, const char* fn )
{
    CLuaCFunction* pFunction = CLuaCFunctions::GetFunction ( fn );
    if ( pFunction )
    {
        lua_classfunction ( luaVM, szFunction, pFunction->GetFunctionAddress () );
    }
    else
        dassert ( "lua_classfunction function does not exist" && 0 );
}