- define the built-in functions defined in codegen.cpp through the regular interface instead uf just hacking them into the symbol table with incompletely set up data.

- added direct native variants to these builtins and fixed problems with builtin processing.
This commit is contained in:
Christoph Oelckers 2018-11-25 11:41:29 +01:00
commit a501a22b28
7 changed files with 98 additions and 92 deletions

View file

@ -933,6 +933,7 @@ void InitThingdef()
assert(afunc->VMPointer != NULL);
*(afunc->VMPointer) = new VMNativeFunction(afunc->Function, afunc->FuncName);
(*(afunc->VMPointer))->PrintableName.Format("%s.%s [Native]", afunc->ClassName+1, afunc->FuncName);
(*(afunc->VMPointer))->DirectNativeCall = afunc->DirectNative;
AFTable.Push(*afunc);
}
AFTable.ShrinkToFit();