class MyClass {
foreign static api(result);
static call(){
api("result data") // call the foreign function
}
}
Is there an API to do something like this?
fn api_function(vm:&VM){
// do stuff with data
}
/// macro to generate a wren foreign function
create_foreign_function!{
static(fn "MyClass.api", 1) api_function
}
I have a class like this
Is there an API to do something like this?