File tree Expand file tree Collapse file tree 5 files changed +20
-17
lines changed Expand file tree Collapse file tree 5 files changed +20
-17
lines changed Original file line number Diff line number Diff line change @@ -203,20 +203,3 @@ typedef void (^SentryUserFeedbackConfigurationBlock)(
203203 SentryUserFeedbackConfiguration *_Nonnull configuration);
204204
205205#endif // TARGET_OS_IOS && SENTRY_HAS_UIKIT
206-
207- /* *
208- * `SENTRY_UNWRAP_NULLABLE` is used to unwrap a nullable pointer type to a non-nullable pointer type
209- * It should be used after the pointer has been checked for nullability.
210- *
211- * For example:
212- * ```objc
213- * id _Nullable nullablePointer = ...;
214- * if (nullablePointer != nil) {
215- * MyClass *_Nonnull nonNullPointer = SENTRY_UNWRAP_NULLABLE(MyClass, nullablePointer);
216- * }
217- * ```
218- *
219- * We use this macro instead of directly casting to be able to find all usages of this
220- * pattern in the codebase.
221- */
222- #define SENTRY_UNWRAP_NULLABLE (type, nullable_var ) (type *_Nonnull)(nullable_var)
Original file line number Diff line number Diff line change 11#import " SentryArray.h"
22#import " SentryDateUtils.h"
3+ #import " SentryInternalDefines.h"
34#import " SentryNSDictionarySanitize.h"
45
56@implementation SentryArray
Original file line number Diff line number Diff line change 33#endif
44
55#import " SentryError.h"
6+ #import " SentryInternalDefines.h"
67#import " SentryNSDataUtils.h"
78
89NS_ASSUME_NONNULL_BEGIN
Original file line number Diff line number Diff line change 55#import " SentryCrashIntegration.h"
66#import " SentryDsn.h"
77#import " SentryFileIOTrackingIntegration.h"
8+ #import " SentryInternalDefines.h"
89#import " SentryLevelMapper.h"
910#import " SentryNetworkTrackingIntegration.h"
1011#import " SentryOptions+Private.h"
Original file line number Diff line number Diff line change @@ -78,3 +78,20 @@ static NSString *const SentryPlatformName = @"cocoa";
7878#define SPAN_DATA_BLOCKED_MAIN_THREAD @" blocked_main_thread"
7979#define SPAN_DATA_THREAD_ID @" thread.id"
8080#define SPAN_DATA_THREAD_NAME @" thread.name"
81+
82+ /* *
83+ * `SENTRY_UNWRAP_NULLABLE` is used to unwrap a nullable pointer type to a non-nullable pointer type
84+ * It should be used after the pointer has been checked for nullability.
85+ *
86+ * For example:
87+ * ```objc
88+ * id _Nullable nullablePointer = ...;
89+ * if (nullablePointer != nil) {
90+ * MyClass *_Nonnull nonNullPointer = SENTRY_UNWRAP_NULLABLE(MyClass, nullablePointer);
91+ * }
92+ * ```
93+ *
94+ * We use this macro instead of directly casting to be able to find all usages of this
95+ * pattern in the codebase.
96+ */
97+ #define SENTRY_UNWRAP_NULLABLE (type, nullable_var ) (type *_Nonnull)(nullable_var)
You can’t perform that action at this time.
0 commit comments