| 1 | /** |
| 2 | * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 3 | * SPDX-License-Identifier: Apache-2.0. |
| 4 | */ |
| 5 | |
| 6 | #include <aws/common/common.h> |
| 7 | |
| 8 | #include <aws/common/system_info.h> |
| 9 | |
| 10 | #include <stdio.h> |
| 11 | #include <stdlib.h> |
| 12 | |
| 13 | void aws_fatal_assert(const char *cond_str, const char *file, int line) { |
| 14 | aws_debug_break(); |
| 15 | fprintf(stderr, "Fatal error condition occurred in %s:%d: %s\nExiting Application\n", file, line, cond_str); |
| 16 | aws_backtrace_print(stderr, NULL); |
| 17 | abort(); |
| 18 | } |