Last active
December 25, 2015 10:39
-
-
Save antonijn/6963158 to your computer and use it in GitHub Desktop.
Boh...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try | |
| { | |
| int first = 0; | |
| } | |
| catch (Exception e) | |
| { | |
| float second = 1.0; | |
| } | |
| finally | |
| { | |
| double third = 2f; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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