Skip to content

Commit

Permalink
Issue #108: Added additional generics macros.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Madsen committed Nov 6, 2015
1 parent 85af173 commit deabcea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Source/MIKMIDICompilerCompatibility.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,23 @@
#define MIKArrayOf(TYPE) NSArray<TYPE>
#define MIKArrayOfKindOf(TYPE) NSArray<__kindof TYPE>

#define MIKMutableArrayOf(TYPE) NSMutableArray<TYPE>

#define MIKSetOf(TYPE) NSSet<TYPE>
#define MIKMutableSetOf(TYPE) NSMutableSet<TYPE>

#define MIKMapTableOf(KEYTYPE, OBJTYPE) NSMapTable<KEYTYPE, OBJTYPE>

#else

#define MIKArrayOf(TYPE) NSArray
#define MIKArrayOfKindOf(TYPE) NSArray

#define MIKMutableArrayOf(TYPE) NSMutableArray

#define MIKSetOf(TYPE) NSSet
#define MIKMutableSetOf(TYPE) NSMutableSet

#define MIKMapTableOf(KEYTYPE, OBJTYPE) NSMapTable

#endif
Expand Down

0 comments on commit deabcea

Please sign in to comment.