Skip to content

Instantly share code, notes, and snippets.

@firegurafiku
Created August 29, 2015 19:36
Show Gist options
  • Save firegurafiku/cb05eba90ffbadb9a408 to your computer and use it in GitHub Desktop.
Save firegurafiku/cb05eba90ffbadb9a408 to your computer and use it in GitHub Desktop.
struct rfdtd_error_info
function(T arg1, T arg2) {
struct rfdtd_error_info error = RFDTD_NO_ERROR;
CHECK(function(arg1, &arg2));
CHECK(another_function());
CHECK(one_more_of_them());
CHECK(rfdtd_new(&ptr));
ON_ERROR(function)
goto failure;
NEW(ptr);
f(ptr);
failure:
FREE(ptr);
return error;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment