Similar to NSAssert, but with slightly improved logging and is meant to ship with apps in release.
Objective-C Ruby
Latest commit c8dd46f Apr 15, 2015 hfossli 2.0
Permalink
Failed to load latest commit information.
AGAssertDemo Some shared data Dec 30, 2013
Source
Tests Moving tests to separate folder Nov 24, 2014
.gitignore gitignore Apr 15, 2015
AGAssert.podspec 2.0 Apr 15, 2015
LICENSE
README.md 2.0 Apr 15, 2015

README.md

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_ASSERTIONS and not NS_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

Agens | Digital craftsmanship