1#ifndef PyObjC_ALLOC_HACK_H 2#define PyObjC_ALLOC_HACK_H 3/*! 4 * @header alloc_hack.h 5 * @abstract Special wrappers for the +alloc method 6 * @discussion 7 * This module defines custom wrappers for the +alloc method. These 8 * are needed for some classes on MacOS X 10.2 because those classes 9 * cause crashes when alloc is called using NSInvocation. 10 * 11 * The issue seems to be fixed in MacOS X 10.3. We keep using these 12 * wrapers just in case the problem returns. 13 */ 14 15/*! 16 * @function PyObjC_InstallAllocHack 17 * @abstract Register the custom wrappers with the bridge 18 * @result Returns 0 on success, -1 on error 19 * @discussion 20 * This function installs the custom wrappers with the super-call.h module. 21 */ 22int PyObjC_InstallAllocHack(void); 23 24#endif /* PyObjC_ALLOC_HACK_H */ 25