darling-cocotron/objc/objc_malloc.m
Christopher Lloyd 912e96c51a - split objc_debugHelpers code between Foundation/NSException and objc/ accordingly
- objc_setForwardHandler used from NSObject to set handlers explcitly
- objc/ switched use of NSZone* calls to private objc_malloc calls
2010-03-18 16:13:28 +00:00

18 lines
285 B
Objective-C

#import "objc_malloc.h"
void *objc_malloc(size_t size) {
return malloc(size);
}
void *objc_realloc(void *ptr,size_t size) {
return realloc(ptr,size);
}
void *objc_calloc(size_t count,size_t size) {
return calloc(count,size);
}
void objc_free(void *ptr) {
free(ptr);
}