A function to be called from Wasm code.
| 35 | |
| 36 | // A function to be called from Wasm code. |
| 37 | own wasm_trap_t* print_callback( |
| 38 | const wasm_val_vec_t* args, wasm_val_vec_t* results |
| 39 | ) { |
| 40 | printf("Calling back...\n> "); |
| 41 | wasm_val_print(args->data[0]); |
| 42 | printf("\n"); |
| 43 | |
| 44 | wasm_val_copy(&results->data[0], &args->data[0]); |
| 45 | return NULL; |
| 46 | } |
| 47 | |
| 48 | |
| 49 | // A function closure. |
nothing calls this directly
no test coverage detected