Extern C support for registering function overloads
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -13,5 +13,11 @@ namespace Porygon::UserData{
|
||||
t->RegisterOption(opt);
|
||||
return t;
|
||||
}
|
||||
|
||||
void RegisterFunctionEvalValueOption(const GenericFunctionEvalValue* val,
|
||||
const Evaluation::EvalValue* (*func)(void*, const ScriptOptions*, const EvalValue* [], int ), void* obj){
|
||||
auto opt = new UserDataFunction(func, obj);
|
||||
val->RegisterOption(opt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user