diff options
Diffstat (limited to 'Firestore/core/src/firebase/firestore/util/assert_apple.mm')
-rw-r--r-- | Firestore/core/src/firebase/firestore/util/assert_apple.mm | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Firestore/core/src/firebase/firestore/util/assert_apple.mm b/Firestore/core/src/firebase/firestore/util/assert_apple.mm index 0447d6c..83b76e1 100644 --- a/Firestore/core/src/firebase/firestore/util/assert_apple.mm +++ b/Firestore/core/src/firebase/firestore/util/assert_apple.mm @@ -26,16 +26,23 @@ namespace firebase { namespace firestore { namespace util { -void FailAssert(const char* file, const char* func, const int line, const char* format, ...) { +void FailAssert(const char* file, + const char* func, + const int line, + const char* format, + ...) { va_list args; va_start(args, format); - NSString *description = [[NSString alloc] initWithFormat:WrapNSStringNoCopy(format) arguments:args]; + NSString* description = + [[NSString alloc] initWithFormat:WrapNSStringNoCopy(format) + arguments:args]; va_end(args); [[NSAssertionHandler currentHandler] handleFailureInFunction:WrapNSStringNoCopy(func) file:WrapNSStringNoCopy(file) lineNumber:line - description:@"FIRESTORE INTERNAL ASSERTION FAILED: %@", description]; + description:@"FIRESTORE INTERNAL ASSERTION FAILED: %@", + description]; abort(); } |