This repository has been archived by the owner. It is now read-only.

Return boolean values from assertions #2

Open
robrix opened this Issue Dec 9, 2011 · 0 comments

Comments

Projects
None yet
1 participant
@robrix
Owner

robrix commented Dec 9, 2011

This would let you do this:

if(RXAssert(YES)) {
    // do some assertions or other work that are dependent on the previous assertion
}

This will require the macros to be reformatted, whether as functions (to what degree that is even possible), compound statement expressions, or blocks (which drops support for older platforms).

We could define the macros conditionally in the latter case, which would let newer platforms have this feature but not drop support for older platforms.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.