Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2011-08-02 05:16:03 +0400
committerNick Kledzik <kledzik@apple.com>2011-08-02 05:16:03 +0400
commitd5b690d39cdd0efa205c490a17122083751f57ac (patch)
tree2b4030b0917392a474c3c91a602db20475f07861 /libcxxabi/src/abort_message.h
parent4bc9f3c1748cbdb16109353332aef19ec922890a (diff)
add abort_message() utility function
llvm-svn: 136669
Diffstat (limited to 'libcxxabi/src/abort_message.h')
-rw-r--r--libcxxabi/src/abort_message.h27
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
+