mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-21 08:18:35 +00:00
Summary: The standardized Meta copyright notice is "Copyright (c) Meta Platforms, Inc. and affiliates." and not "Copyright (c) Meta Platforms, Inc. and its affiliates." (Dropping the "its") This diff updates the copyright notice in each source file to the correct this. Reviewed By: willbailey Differential Revision: D44737667 fbshipit-source-id: 643bf36df76723e70d9d826c53cf8f29b8a0c8cc
36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* 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 defined(IGLK_LOGGING_ENABLED) && 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
|
|
|
|
#define IGLK_BLOCK_CALL_SAFE(BLOCK, ...) \
|
|
do { \
|
|
__typeof(BLOCK) ig_safe_block = (BLOCK); \
|
|
if (ig_safe_block) { \
|
|
ig_safe_block(__VA_ARGS__); \
|
|
} \
|
|
} while (NO)
|