Changes in uspace/lib/c/generic/setjmp.c [b4f1171:a35a3d8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/setjmp.c
rb4f1171 ra35a3d8 38 38 void longjmp(jmp_buf env, int val) 39 39 { 40 /* 41 * The standard requires that longjmp() ensures that val is not zero. 42 * __context_restore doesn't do that, so we do it here. 43 */ 44 __context_restore(env, val == 0 ? 1 : val); 40 /* __longjmp defined in assembly doesn't "correct" the value. */ 41 __longjmp(env, val == 0 ? 1 : val); 45 42 } 46 43
Note:
See TracChangeset
for help on using the changeset viewer.