debug.h 728 B

123456789101112131415161718192021222324
  1. #ifndef __XPC_DEBUG_H__
  2. #define __XPC_DEBUG_H__
  3. /*!
  4. * @function xpc_debugger_api_misuse_info
  5. * Returns a pointer to a string describing the reason XPC aborted the calling
  6. * process. On OS X, this will be the same string present in the "Application
  7. * Specific Information" section of the crash report.
  8. *
  9. * @result
  10. * A pointer to the human-readable string describing the reason the caller was
  11. * aborted. If XPC was not responsible for the program's termination, NULL will
  12. * be returned.
  13. *
  14. * @discussion
  15. * This function is only callable from within a debugger. It is not meant to be
  16. * called by the program directly.
  17. */
  18. XPC_DEBUGGER_EXCL
  19. const char *
  20. xpc_debugger_api_misuse_info(void);
  21. #endif // __XPC_DEBUG_H__