mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-22 08:48:21 +00:00
Summary: Relicensing IGListKit under MIT Reviewed By: calimarkus Differential Revision: D7764125 fbshipit-source-id: 6c773195ef3184202725fe7f08de754f979cb83f
28 lines
1,003 B
C
28 lines
1,003 B
C
/**
|
|
* Copyright (c) 2016-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#ifndef IGLK_SUBCLASSING_RESTRICTED
|
|
#if defined(__has_attribute) && __has_attribute(objc_subclassing_restricted)
|
|
#define IGLK_SUBCLASSING_RESTRICTED __attribute__((objc_subclassing_restricted))
|
|
#else
|
|
#define IGLK_SUBCLASSING_RESTRICTED
|
|
#endif // #if defined(__has_attribute) && __has_attribute(objc_subclassing_restricted)
|
|
#endif // #ifndef IGLK_SUBCLASSING_RESTRICTED
|
|
|
|
#ifndef IGLK_UNAVAILABLE
|
|
#define IGLK_UNAVAILABLE(message) __attribute__((unavailable(message)))
|
|
#endif // #ifndef IGLK_UNAVAILABLE
|
|
|
|
#if IGLK_LOGGING_ENABLED
|
|
#define IGLKLog( s, ... ) do { NSLog( @"IGListKit: %@", [NSString stringWithFormat: (s), ##__VA_ARGS__] ); } while(0)
|
|
#else
|
|
#define IGLKLog( s, ... )
|
|
#endif
|
|
|
|
#ifndef IGLK_DEBUG_DESCRIPTION_ENABLED
|
|
#define IGLK_DEBUG_DESCRIPTION_ENABLED DEBUG
|
|
#endif // #ifndef IGLK_DEBUG_DESCRIPTION_ENABLED
|