22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
@try { \
code; \
\
puts("NOT CAUGHT!"); \
return 1; \
} @catch (exception *e) { \
puts("CAUGHT! Error string was:"); \
puts([e cString]); \
puts("Resuming..."); \
}
int
main()
{
OFObject *obj = [[OFObject alloc] init];
|
|
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
@try { \
code; \
\
puts("NOT CAUGHT!"); \
return 1; \
} @catch (exception *e) { \
puts("CAUGHT! Error string was:"); \
puts([[e string] cString]); \
puts("Resuming..."); \
}
int
main()
{
OFObject *obj = [[OFObject alloc] init];
|