Line data Source code
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 0 : void aws_fatal_assert(const char *cond_str, const char *file, int line) {
14 0 : aws_debug_break();
15 0 : fprintf(stderr, "Fatal error condition occurred in %s:%d: %s\nExiting Application\n", file, line, cond_str);
16 0 : aws_backtrace_print(stderr, NULL);
17 0 : abort();
18 0 : }
|