- added a FindSymbol wrapper to PClass so that other code does not need to access the symbol table directly.
- added an isActor utility function to codegen.cpp to simplify a few constructs.
This commit is contained in:
parent
b17ab7a133
commit
6308251084
19 changed files with 49 additions and 38 deletions
|
|
@ -733,7 +733,7 @@ FieldDesc *FindField(PStruct *cls, const char * string)
|
|||
|
||||
VMFunction *FindVMFunction(PClass *cls, const char *name)
|
||||
{
|
||||
auto f = dyn_cast<PFunction>(cls->Symbols.FindSymbol(name, true));
|
||||
auto f = dyn_cast<PFunction>(cls->FindSymbol(name, true));
|
||||
return f == nullptr ? nullptr : f->Variants[0].Implementation;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue