This commit is contained in:
@@ -5,7 +5,7 @@ using namespace Porygon::Evaluation;
|
||||
|
||||
namespace Porygon::UserData{
|
||||
extern "C" {
|
||||
EvalValue * CreateFunctionEvalValue(Evaluation::EvalValue* (*func)(void* , EvalValue* [], int ), void* obj) {
|
||||
const EvalValue * CreateFunctionEvalValue(const Evaluation::EvalValue* (*func)(void* , const EvalValue* [], int ), void* obj) {
|
||||
auto opt = new UserDataFunction(func, obj);
|
||||
auto t = new GenericFunctionEvalValue(make_shared<GenericFunctionScriptType>(), rand());
|
||||
t->RegisterOption(opt);
|
||||
|
||||
Reference in New Issue
Block a user