From 810309928761f527dae5562f501296ed4440877a Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Wed, 21 Aug 2019 10:34:10 +0200 Subject: [PATCH] Add extern C function to clone scripts --- src/Script.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Script.cpp b/src/Script.cpp index e62031a..260a46c 100644 --- a/src/Script.cpp +++ b/src/Script.cpp @@ -119,6 +119,10 @@ extern "C" { return Porygon::Script::Create(s); } + Porygon::Script* CloneScript(Porygon::Script* p){ + return Porygon::Script::Clone(p); + } + Porygon::EvaluateResult* EvaluateScript(Porygon::Script* script){ try{ auto result = script -> Evaluate();