trapCodeName function
The human readable name of a WASMTIME_TRAP_CODE_* value.
Implementation
String trapCodeName(int code) {
for (final value in c.wasmtime_trap_code_enum.values) {
if (value.value == code) return value.name;
}
return 'WASMTIME_TRAP_CODE_$code';
}