error.h 1.6 KB

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