aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Messaging/FIRMessagingDefines.h
diff options
context:
space:
mode:
authorGravatar Riz <rsattar@gmail.com>2017-09-13 17:43:17 -0700
committerGravatar GitHub <noreply@github.com>2017-09-13 17:43:17 -0700
commit446c5c026702af69ffa203b58128fad7e7c0ff88 (patch)
treea50839a4dd98b86c00f63d9a738961c7d81cbe6a /Firebase/Messaging/FIRMessagingDefines.h
parente69e62beb269b08764e603b0fa517cf1f8d4f00b (diff)
Remove FIRMessaging_FAIL macro, log result code (#265)
This removes the `FIRMessaging_FAIL` macro which was using `__builtin_trap()`, and replaced with `NSAssert` calls. These `NSAssert` calls may not get called in release builds, and so we also log them with FIRLogger error messages. The RMQ database open error result code is now parsed and included in the error message to help us identify causes for #199 .
Diffstat (limited to 'Firebase/Messaging/FIRMessagingDefines.h')
-rw-r--r--Firebase/Messaging/FIRMessagingDefines.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/Firebase/Messaging/FIRMessagingDefines.h b/Firebase/Messaging/FIRMessagingDefines.h
index 36448ed..62399b3 100644
--- a/Firebase/Messaging/FIRMessagingDefines.h
+++ b/Firebase/Messaging/FIRMessagingDefines.h
@@ -27,18 +27,6 @@
#endif // FIRMessaging_VERBOSE_LOGGING
-// FIRMessaging_FAIL
-#ifdef DEBUG
-#define FIRMessaging_FAIL(format, ...) \
-do { \
- NSLog(format, ##__VA_ARGS__); \
- __builtin_trap(); \
-} while (false)
-#else
-#define FIRMessaging_FAIL(...) do { } while (0)
-#endif
-
-
// WEAKIFY & STRONGIFY
// Helper macro.
#define _FIRMessaging_WEAKNAME(VAR) VAR ## _weak_