Changeset 1433ecda in mainline for uspace/app/tester/thread/setjmp1.c
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/thread/setjmp1.c
r47b2d7e3 r1433ecda 35 35 static int counter; 36 36 37 static void do_the_long_jump(void) { 37 static void do_the_long_jump(void) 38 { 38 39 TPRINTF("Will do a long jump back to test_it().\n"); 39 40 longjmp(jmp_env, 1); 40 41 } 41 42 42 static const char *test_it(void) { 43 static const char *test_it(void) 44 { 43 45 int second_round = setjmp(jmp_env); 44 46 counter++;
Note:
See TracChangeset
for help on using the changeset viewer.