From f5bfd9c7102b0b8511d44d6211e3c48a5bfc869f Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 25 Aug 2019 12:38:36 +0200 Subject: [PATCH] Extern C support for creating NilEvalValue --- src/Evaluator/EvalValues/EvalValue.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Evaluator/EvalValues/EvalValue.cpp b/src/Evaluator/EvalValues/EvalValue.cpp index a4a1c7e..df03672 100644 --- a/src/Evaluator/EvalValues/EvalValue.cpp +++ b/src/Evaluator/EvalValues/EvalValue.cpp @@ -1,6 +1,7 @@ #include "EvalValue.hpp" #include "NumericEvalValue.hpp" #include "StringEvalValue.hpp" +#include "NilEvalValue.hpp" #include #include @@ -52,6 +53,11 @@ namespace Porygon::Evaluation { EvalValue *CreateStringEvalValue(const char16_t *s) { return new StringEvalValue(s); } + + EvalValue *CreateNilEvalValue() { + return new NilEvalValue(); + } + } }