29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
puts([e cString]); \
puts("Resuming..."); \
}
int
main()
{
OFObject *obj = [OFObject new];
void *p, *q, *r;
/* Test freeing memory not allocated by obj */
puts("Freeing memory not allocated by object (should throw an "
"exception)...");
CATCH_EXCEPTION([obj freeMem: NULL], OFMemNotPartOfObjException)
|
|
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
puts([e cString]); \
puts("Resuming..."); \
}
int
main()
{
OFObject *obj = [[OFObject alloc] init];
void *p, *q, *r;
/* Test freeing memory not allocated by obj */
puts("Freeing memory not allocated by object (should throw an "
"exception)...");
CATCH_EXCEPTION([obj freeMem: NULL], OFMemNotPartOfObjException)
|