[Function.Call.begin]
| 221 | |
| 222 | // [Function.Call.begin] |
| 223 | int64_t CallFunction(TVMFFIObject* func, int64_t x, int64_t y) { |
| 224 | int err_code; |
| 225 | TVMFFIAny args[2]; |
| 226 | TVMFFIAny result = (TVMFFIAny){0}; |
| 227 | args[0] = Any_AnyView_FromInt(x); |
| 228 | args[1] = Any_AnyView_FromInt(y); |
| 229 | err_code = TVMFFIFunctionCall(func, args, 2, &result); |
| 230 | assert(err_code == 0); |
| 231 | return Any_AnyView_GetInt(&result); |
| 232 | } |
| 233 | // [Function.Call.end] |
| 234 | |
| 235 | // [Function.GetGlobal.begin] |
nothing calls this directly
no test coverage detected