Exceptions: Difference between revisions
Content added Content deleted
m (→{{header|C}}) |
|||
Line 39: | Line 39: | ||
=={{header|C}}== |
=={{header|C}}== |
||
The setjmp()/longjmp() functions in the C standard library header <setjmp.h> |
The setjmp()/longjmp() functions in the C standard library header <setjmp.h> are typically used for exception handling. |
||
===try-catch=== |
===try-catch=== |
||
Line 48: | Line 48: | ||
jmp_buf env; |
jmp_buf env; |
||
void foo() |
void foo() |
||
{ |
{ |