PorygonLang/src/UserData/UserDataValue.cpp

15 lines
312 B
C++

#include "UserDataValue.hpp"
namespace Porygon::UserData {
extern "C" {
UserDataValue *CreateUserDataEvalValue(uint32_t typeHash, void *obj) {
return new UserDataValue(typeHash, obj);
}
void* EvaluateUserDataObj(UserDataValue *v){
return v -> GetObjectPointer();
}
}
}