Please sign in to comment.
Reduced warning spam from the assert macros when a parameter causes a…
… warning. The extra warnings were coming from the __typeof__ expressions, so now we take the type of the parameter itself only once (and the type of its evaluated value thereafter). As an example, `RXAssertEquals([foo bar], 0)` would warn when -bar can’t be found, as expected… but it would warn six times. Now it’s down to twice. Unfortunately, I don’t believe it can be reduced any further since the initial __typeof__ expression is needed to store the value of the parameter (avoiding re-evaluating and potentially duplicating side-effects).
- Loading branch information...