Extern C support for creating NilEvalValue
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2019-08-25 12:38:36 +02:00
parent 4c97a7c811
commit f5bfd9c710
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#include "EvalValue.hpp"
#include "NumericEvalValue.hpp"
#include "StringEvalValue.hpp"
#include "NilEvalValue.hpp"
#include <cstring>
#include <memory>
@ -52,6 +53,11 @@ namespace Porygon::Evaluation {
EvalValue *CreateStringEvalValue(const char16_t *s) {
return new StringEvalValue(s);
}
EvalValue *CreateNilEvalValue() {
return new NilEvalValue();
}
}
}