mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 20:19:40 +00:00
912e96c51a
- objc_setForwardHandler used from NSObject to set handlers explcitly - objc/ switched use of NSZone* calls to private objc_malloc calls
18 lines
285 B
Objective-C
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);
|
|
}
|