Let OCMBlockConstraint copy the block passed into initializer to avoid problems with stack allocated blocks #12

Merged
merged 1 commit into from Jan 16, 2013

Projects

None yet

2 participants

@cahlbin

Nicer if the client code doesn't have to bother about copying any stack allocated block if it would go out of scope before checked against.

I.e if you have a helper method setting up the expectations using constraint blocks, in which the original checker-block is created, the block is likely to be out of scope when the constraint is checked against.

christoffer.ahlbin Let OCMBlockConstraint copy the block passed into initializer to avoi…
…d problems with stack allocated blocks
0a7d22a
@erikdoe erikdoe merged commit a1354b5 into erikdoe:master Jan 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment