Skip to content

Instantly share code, notes, and snippets.

@rhenium
Created June 13, 2017 10:39
Show Gist options
  • Save rhenium/00acb9377c4dda48e4f804860aed833f to your computer and use it in GitHub Desktop.
Save rhenium/00acb9377c4dda48e4f804860aed833f to your computer and use it in GitHub Desktop.
void
sfunc(int room)
{
if (room)
go();
}
void
func(int argc)
{
struct {
int argc;
} *obj = go();
setjmp(123);
obj->argc = argc;
if (obj->argc)
sfunc(argc);
else {
if (argc > 0)
argc = 1;
sfunc(obj);
}
if (obj->argc > 0)
abc();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment