Reduce calling overhead for A_SetUser* functions by making them non-action functions

This commit is contained in:
Randy Heit 2016-04-18 23:18:34 -05:00
commit c795f29cc4
3 changed files with 18 additions and 11 deletions

View file

@ -473,7 +473,7 @@ static void ParseNativeFunction(FScanner &sc, PClassActor *cls)
FScriptPosition::ErrorCounter++;
}
// Read the type and make sure it's int or float.
// Read the type and make sure it's acceptable.
sc.MustGetAnyToken();
switch (sc.TokenType)
{
@ -490,6 +490,9 @@ static void ParseNativeFunction(FScanner &sc, PClassActor *cls)
rets.Push(TypeState);
break;
case TK_Void:
break;
case TK_Identifier:
rets.Push(NewPointer(RUNTIME_CLASS(DObject)));
// Todo: Object type