PorygonLang/src/UserData/UserDataValue.cpp

15 lines
312 B
C++
Raw Normal View History

2019-06-14 12:59:38 +00:00
#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();
}
}
}