PorygonLang/src/UserData/UserDataOperation.cpp

12 lines
503 B
C++
Raw Permalink Normal View History

#include "UserDataOperation.hpp"
namespace Porygon::UserData{
extern "C" {
UserDataBinaryOperation* CreateUserdataBinaryOperation(Evaluation::EvalValue *(*func)(void *, const Evaluation::EvalValue *),
ScriptType* secondParameter, ScriptType* returnType){
return new UserDataBinaryOperation(func, shared_ptr<const ScriptType>(secondParameter),
shared_ptr<const ScriptType>(returnType));
}
}
}