PR c++/60353
[official-gcc.git] / libobjc / objc-private / error.h
blob6d796d9907957e6b0b9043d4f2da647af08c7cbc
1 /* GNU Objective C Runtime Common Private Definitions
2 Copyright (C) 2010-2014 Free Software Foundation, Inc.
3 Contributed by Nicola Pero
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under the
8 terms of the GNU General Public License as published by the Free Software
9 Foundation; either version 3, or (at your option) any later version.
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 details.
16 Under Section 7 of GPL version 3, you are granted additional
17 permissions described in the GCC Runtime Library Exception, version
18 3.1, as published by the Free Software Foundation.
20 You should have received a copy of the GNU General Public License and
21 a copy of the GCC Runtime Library Exception along with this program;
22 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
23 <http://www.gnu.org/licenses/>. */
25 #ifndef __objc_private_error_INCLUDE_GNU
26 #define __objc_private_error_INCLUDE_GNU
28 /* Prints an unrecoverable error to stderr, then aborts the program.
29 This should only be used for errors that really are unrecorevable:
30 failure to allocate memory, and failure to load an Objective-C
31 module. All other usages of this function should be converted into
32 some milder type of error (unless aborting is explicitly required
33 by the documentation/API).
35 void
36 _objc_abort (const char *fmt, ...) __attribute__ ((noreturn));
38 #endif /* __objc_private_error_INCLUDE_GNU */