I got Eror(]No matching signatures to ... )with this code.
why it's not working?
class IInt{
...
virtual void regFunctions(asIScriptEngine*_engine)=0;
...
};
class Core:public Iint{
...
virtual void regFunctions(asIScriptEngine*_engine){
Warning("regFunctions");
int r;
//
//!Logging
//
r = _engine->RegisterGlobalFunction("void LogPrintf(const string val)", asFUNCTION(ScriptLogPrintf), asCALL_CDECL); assert( r >= 0 );
r = _engine->RegisterGlobalFunction("void Warning(const string val)", asFUNCTION(ScriptWarning), asCALL_CDECL); assert( r >= 0 );
r = _engine->RegisterGlobalFunction("void Debug(const string val)", asFUNCTION(ScriptDebug), asCALL_CDECL); assert( r >= 0 );
r = _engine->RegisterGlobalFunction("void Error(const string val, bool val)", asFUNCTION(ScriptError), asCALL_CDECL); assert( r >= 0 );
};
};
class Engine:public Core{
...
virtual void regFunctions(asIScriptEngine*_engine){Core::regFunctions(this->mASEngine)}
}
};