Exemplo n.º 1
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 () );
    }
}
Exemplo n.º 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 );
}