diff options
author | Nick Kledzik <kledzik@apple.com> | 2011-08-02 05:16:03 +0400 |
---|---|---|
committer | Nick Kledzik <kledzik@apple.com> | 2011-08-02 05:16:03 +0400 |
commit | d5b690d39cdd0efa205c490a17122083751f57ac (patch) | |
tree | 2b4030b0917392a474c3c91a602db20475f07861 /libcxxabi/src/abort_message.h | |
parent | 4bc9f3c1748cbdb16109353332aef19ec922890a (diff) |
add abort_message() utility function
llvm-svn: 136669
Diffstat (limited to 'libcxxabi/src/abort_message.h')
-rw-r--r-- | libcxxabi/src/abort_message.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libcxxabi/src/abort_message.h b/libcxxabi/src/abort_message.h new file mode 100644 index 000000000000..b3fa92522dbd --- /dev/null +++ b/libcxxabi/src/abort_message.h @@ -0,0 +1,27 @@ +//===-------------------------- abort_message.h-----------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef __ABORT_MESSAGE_H_ +#define __ABORT_MESSAGE_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +extern void abort_message(const char* format, ...) + __attribute__((noreturn, format(printf, 1, 2))); + + +#ifdef __cplusplus +} +#endif + + +#endif + |