18 lines
189 B
C
18 lines
189 B
C
#include <stdio.h>
|
|
#include "exceptions.h"
|
|
|
|
void f() {
|
|
throw(89);
|
|
printf("All good.\n");
|
|
}
|
|
|
|
int main(void) {
|
|
try {
|
|
f();
|
|
} catch {
|
|
printf("Caught %d!\n", excptno);
|
|
}
|
|
|
|
return 0;
|
|
}
|