From f4277d47c3a368ebf2812022146eeafb0ed9647a Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 22 Sep 2019 13:30:25 +0200 Subject: [PATCH] extern C entry point to check if NumericEvalValue is float or int --- src/Evaluator/EvalValues/NumericEvalValue.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Evaluator/EvalValues/NumericEvalValue.cpp b/src/Evaluator/EvalValues/NumericEvalValue.cpp index 1d000ad..d7457ac 100644 --- a/src/Evaluator/EvalValues/NumericEvalValue.cpp +++ b/src/Evaluator/EvalValues/NumericEvalValue.cpp @@ -140,4 +140,9 @@ namespace Porygon::Evaluation { return new NumericEvalValue(- std::get(_intValue)); } + extern "C"{ + bool IsNumericValueFloat(NumericEvalValue* val){ + return val->IsFloat(); + } + } } \ No newline at end of file