Hi,
I want to compare if a asIScriptFunction* containes to a stored module.
//c++
asIScriptModule *myModule;
void setCallback(asIScriptFunction * func){
//compare if func contains to the module myModule
// bad way
if(std::string(func->getModule()->getName()) == myModule->getName()){
}
///... do something else
}
//AngelScript
void callback(){
//some code
}
void main(){
setCallback(@callback);
}
Using the name of the module is possible, but it's not a fast solution.
Is there any 'ID' like the Index in "asIScriptEngine::GetModuleByIndex()" stored inside a module?
Thanks for every answer
ccvca