// interface bool asCScriptFunction::IsCompatibleWithTypeId(int typeId) const { asCDataType dt = engine->GetDataTypeFromTypeId(typeId); // Make sure the type is a function asCScriptFunction *func = dt.GetFuncDef(); if( func == 0 ) return false; if( !IsSignatureExceptNameEqual(func) ) return false; // If this is a class method, then only return true if the object type is the same if( objectType != func->objectType ) return false; return true; }
// internal bool asCScriptFunction::IsSignatureEqual(const asCScriptFunction *func) const { if( !IsSignatureExceptNameEqual(func) || name != func->name ) return false; return true; }
// internal bool asCScriptFunction::IsSignatureExceptNameAndObjectTypeEqual(const asCScriptFunction *func) const { return IsSignatureExceptNameEqual(func->returnType, func->parameterTypes, func->inOutFlags, objectType, isReadOnly); }