Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Commit

Permalink
Published the object helper functions since they’re useful for integr…
Browse files Browse the repository at this point in the history
…ating Polymorph objects.
  • Loading branch information
robrix committed May 18, 2010
1 parent e778dc4 commit 6fa75de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RXAssertions.h
Expand Up @@ -54,6 +54,11 @@ typedef BOOL (*RXAssertionHelperComparisonFunction)(const void *aRef, const void
typedef NSString *(*RXAssertionHelperDescriptionFunction)(const void *ref);


// making these functions available for registering Polymorph types
BOOL RXAssertionHelperObjectComparison(const void *a, const void *b);
NSString *RXAssertionHelperObjectDescription(const void *ref);


@interface RXAssertionHelper : NSObject

+(void)registerComparisonFunction:(RXAssertionHelperComparisonFunction)comparator forObjCType:(const char *)type;
Expand Down

0 comments on commit 6fa75de

Please sign in to comment.