Posted By

Tagged

Prefix header with better releasing, freeing and logging

This prefix header adds SXRelease(), SXFree() and SXLog() which can be used instead of -[<NSObject> release], free() and NSLog(). In order to use SXLog(), you must have DEBUG defined somewhere, such as in the build settings of the debug configuration.

Please note that the while(0){} is to prevent errors where a single ; is not permitted. The optimizer will remove this from the assembly code.