Add extern C function to clone scripts
This commit is contained in:
parent
faa3000d95
commit
8103099287
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue