22 lines
670 B
C
22 lines
670 B
C
//
|
|
// MIKMIDIPrivate.h
|
|
// MIKMIDI
|
|
//
|
|
// Created by Andrew Madsen on 10/29/13.
|
|
// Copyright (c) 2013 Mixed In Key. All rights reserved.
|
|
//
|
|
|
|
#if OS_OBJECT_HAVE_OBJC_SUPPORT && __has_feature(objc_arc)
|
|
#define MIKMIDI_GCD_RELEASE(x)
|
|
#define MIKMIDI_GCD_RETAIN(x)
|
|
#else
|
|
#define MIKMIDI_GCD_RELEASE(x) if (x) { dispatch_release(x); }
|
|
#define MIKMIDI_GCD_RETAIN(x) if (x) { dispatch_retain(x); }
|
|
#endif
|
|
|
|
#define SHOW_STANDARD_DEPRECATION_WARNING static dispatch_once_t onceToken; \
|
|
dispatch_once(&onceToken, ^{ \
|
|
NSLog(@"-[%@ %@] is deprecated and will be removed in a future release of MIKMIDI.", NSStringFromClass([self class]), NSStringFromSelector(_cmd)); \
|
|
}); \
|
|
|