I'm trying to use NSAssert
in my code but it doesn't do a thing.
In this piece of code, the assertion should fail but doesn't:
MSLog(@"cross.obj = %@",[cross obj]);
NSAssert([cross obj]!=nil,@"[cross obj] == nil");
The output of this is:
cross.obj = (null)
What could be the problem?
NS_BLOCK_ASSERTIONS
blocks assertions from functioning. Try deleting the definition.