Add extern C function to clone scripts

This commit is contained in:
Deukhoofd 2019-08-21 10:34:10 +02:00
parent faa3000d95
commit 8103099287
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,10 @@ extern "C" {
return Porygon::Script::Create(s); return Porygon::Script::Create(s);
} }
Porygon::Script* CloneScript(Porygon::Script* p){
return Porygon::Script::Clone(p);
}
Porygon::EvaluateResult* EvaluateScript(Porygon::Script* script){ Porygon::EvaluateResult* EvaluateScript(Porygon::Script* script){
try{ try{
auto result = script -> Evaluate(); auto result = script -> Evaluate();