Lines Matching refs:error
16 static void exit_with_error(const char *message, wasmtime_error_t *error,
47 wasmtime_error_t *error = wasmtime_wat2wasm(wat.data, wat.size, &wasm); in main() local
48 if (error != NULL) in main()
49 exit_with_error("failed to parse wat", error, NULL); in main()
54 error = wasmtime_module_new(engine, (uint8_t *)wasm.data, wasm.size, &module); in main()
56 exit_with_error("failed to compile module", error, NULL); in main()
61 error = wasmtime_instance_new(context, module, NULL, 0, &instance, &trap); in main()
62 if (error != NULL || trap != NULL) in main()
63 exit_with_error("failed to instantiate", error, trap); in main()
80 error = in main()
82 if (error != NULL || trap != NULL) in main()
83 exit_with_error("failed to call gcd", error, trap); in main()
97 static void exit_with_error(const char *message, wasmtime_error_t *error, in exit_with_error() argument
101 if (error != NULL) { in exit_with_error()
102 wasmtime_error_message(error, &error_message); in exit_with_error()