Skip to content

Instantly share code, notes, and snippets.

@antonijn
Last active December 25, 2015 10:39
Show Gist options
  • Select an option

  • Save antonijn/6963158 to your computer and use it in GitHub Desktop.

Select an option

Save antonijn/6963158 to your computer and use it in GitHub Desktop.
Boh...
try
{
int first = 0;
}
catch (Exception e)
{
float second = 1.0;
}
finally
{
double third = 2f;
}
jmp_buf temp1;
void temp0(void)
{
double l_third = 2.0f;
}
memcpy(&temp1, &exception_buf, sizeof(jmp_buf));
if (setjmp(exception_buf) == 0)
{
{
int32_t l_first = 0;
}
temp0();
}
else
{
memcpy(&exception_buf, &temp1, sizeof(jmp_buf));
struct c_boh_p_lang_p_Type * exception_type = exception->vtable->getType(exception);
if (exception_type == typeof_c_boh_p_lang_p_Exception())
{
struct c_boh_p_lang_p_Exception * p_e = (struct c_boh_p_lang_p_Exception *)exception;
{
float l_second = 1.0;
}
temp0();
longjmp(exception_buf, 1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment