Skip to content

Instantly share code, notes, and snippets.

@bjfish
Created March 5, 2019 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjfish/1d79f2164f1e0e5469baa818ec042669 to your computer and use it in GitHub Desktop.
Save bjfish/1d79f2164f1e0e5469baa818ec042669 to your computer and use it in GitHub Desktop.
void print_wasmer_error()
{
int error_len = wasmer_last_error_length();
printf("Error len: `%d`\n", error_len);
char *error_str = malloc(error_len);
wasmer_last_error_message(error_str, error_len);
printf("Error str: `%s`\n", error_str);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment