AGAssert
AGAssert copied to clipboard
Similar to NSAssert, but with slightly improved logging and is meant to ship with apps in release.
trafficstars
AGAssert
Similar to NSAssert, but with slightly improved logging and is meant to ship with apps in release.
Benefits of using this over NSAssert:
- It is default on in all configurations since it uses
AG_BLOCK_ASSERTIONSand notNS_BLOCK_ASSERTIONS. - Slightly improved logging.
- Fewer macros and less mess.
- Does not require any description string as second parameter
The assert will raise an exception.
Recommended reading about asserts http://www.mikeash.com/pyblog/friday-qa-2013-05-03-proper-use-of-asserts.html
