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