From deabcea58e1a972e073864966a72f2b6aafb1434 Mon Sep 17 00:00:00 2001 From: Andrew Madsen Date: Fri, 6 Nov 2015 11:33:48 -0700 Subject: [PATCH] Issue #108: Added additional generics macros. --- Source/MIKMIDICompilerCompatibility.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/MIKMIDICompilerCompatibility.h b/Source/MIKMIDICompilerCompatibility.h index de4b6e6b..fc081e76 100644 --- a/Source/MIKMIDICompilerCompatibility.h +++ b/Source/MIKMIDICompilerCompatibility.h @@ -26,6 +26,11 @@ #define MIKArrayOf(TYPE) NSArray #define MIKArrayOfKindOf(TYPE) NSArray<__kindof TYPE> +#define MIKMutableArrayOf(TYPE) NSMutableArray + +#define MIKSetOf(TYPE) NSSet +#define MIKMutableSetOf(TYPE) NSMutableSet + #define MIKMapTableOf(KEYTYPE, OBJTYPE) NSMapTable #else @@ -33,6 +38,11 @@ #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