ModuleSystem: Lookup CInterface methods when calling module create func

This commit is contained in:
Lukas Joergensen 2019-08-03 15:04:21 +02:00 committed by Lukas Aldershaab
parent 68b6884665
commit fe09d6e125
2 changed files with 15 additions and 10 deletions

View file

@ -42,6 +42,7 @@
#include "persistence/taml/tamlCustom.h"
#include "sim/netObject.h"
#include "cinterface/cinterface.h"
IMPLEMENT_CONOBJECT( SimObject );
@ -831,6 +832,10 @@ bool SimObject::isMethod( const char* methodName )
if( !methodName || !methodName[0] )
return false;
if (CInterface::isMethod(this->getName(), methodName) || CInterface::isMethod(this->getClassName(), methodName)) {
return true;
}
StringTableEntry stname = StringTable->insert( methodName );
if( getNamespace() )