Skip to content

Instantly share code, notes, and snippets.

@bjfish
Created March 5, 2019 04:33
Embed
What would you like to do?
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