31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
return [[OFNoMemException alloc] init: obj
withSize: size];
}
- init: (id)obj
withSize: (size_t)size
{
fprintf(stderr, "ERROR: Could not allocate %zu byte for object %s!\n",
size, [obj name]);
return [super init];
}
@end
@implementation OFMemNotPartOfObjException
|
|
|
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
return [[OFNoMemException alloc] init: obj
withSize: size];
}
- init: (id)obj
withSize: (size_t)size
{
fprintf(stderr, "ERROR: Could not allocate %zu bytes for object %s!\n",
size, [obj name]);
return [super init];
}
@end
@implementation OFMemNotPartOfObjException
|