| Nick Kledzik | d5b690d | 2011-08-02 01:16:03 +0000 | [diff] [blame] | 1 | //===-------------------------- abort_message.h-----------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| Howard Hinnant | 987afbe | 2011-12-06 18:01:47 +0000 | [diff] [blame] | 5 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 6 | // Source Licenses. See LICENSE.TXT for details. |
| Nick Kledzik | d5b690d | 2011-08-02 01:16:03 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef __ABORT_MESSAGE_H_ |
| 11 | #define __ABORT_MESSAGE_H_ |
| 12 | |
| Howard Hinnant | 2449538 | 2012-01-25 18:50:55 +0000 | [diff] [blame] | 13 | #include <stdio.h> |
| Nick Kledzik | 1c839a9 | 2011-08-02 05:01:31 +0000 | [diff] [blame] | 14 | |
| Howard Hinnant | eaa65af | 2012-02-02 20:47:28 +0000 | [diff] [blame] | 15 | #pragma GCC visibility push(hidden) |
| 16 | |
| Howard Hinnant | 0d517a4 | 2012-01-24 19:58:25 +0000 | [diff] [blame] | 17 | #ifdef __cplusplus |
| Nick Kledzik | d5b690d | 2011-08-02 01:16:03 +0000 | [diff] [blame] | 18 | extern "C" { |
| 19 | #endif |
| 20 | |
| Howard Hinnant | 0d517a4 | 2012-01-24 19:58:25 +0000 | [diff] [blame] | 21 | __attribute__((visibility("hidden"), noreturn)) |
| Nick Kledzik | 1c839a9 | 2011-08-02 05:01:31 +0000 | [diff] [blame] | 22 | void abort_message(const char* format, ...) |
| 23 | __attribute__((format(printf, 1, 2))); |
| Nick Kledzik | d5b690d | 2011-08-02 01:16:03 +0000 | [diff] [blame] | 24 | |
| 25 | |
| 26 | #ifdef __cplusplus |
| 27 | } |
| 28 | #endif |
| 29 | |
| Howard Hinnant | eaa65af | 2012-02-02 20:47:28 +0000 | [diff] [blame] | 30 | #pragma GCC visibility pop |
| Nick Kledzik | d5b690d | 2011-08-02 01:16:03 +0000 | [diff] [blame] | 31 | |
| 32 | #endif |
| 33 | |