Extern C support for creating NilEvalValue
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#include "EvalValue.hpp"
|
#include "EvalValue.hpp"
|
||||||
#include "NumericEvalValue.hpp"
|
#include "NumericEvalValue.hpp"
|
||||||
#include "StringEvalValue.hpp"
|
#include "StringEvalValue.hpp"
|
||||||
|
#include "NilEvalValue.hpp"
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
@@ -52,6 +53,11 @@ namespace Porygon::Evaluation {
|
|||||||
EvalValue *CreateStringEvalValue(const char16_t *s) {
|
EvalValue *CreateStringEvalValue(const char16_t *s) {
|
||||||
return new StringEvalValue(s);
|
return new StringEvalValue(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EvalValue *CreateNilEvalValue() {
|
||||||
|
return new NilEvalValue();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user