aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/include/any-macos-any/xpc/debug.h
blob: 462872b35a2f14a78a234e6514282775c99ac959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __XPC_DEBUG_H__
#define __XPC_DEBUG_H__

__BEGIN_DECLS

/*!
 * @function xpc_debugger_api_misuse_info
 * Returns a pointer to a string describing the reason XPC aborted the calling
 * process. On OS X, this will be the same string present in the "Application
 * Specific Information" section of the crash report.
 * 
 * @result
 * A pointer to the human-readable string describing the reason the caller was
 * aborted. If XPC was not responsible for the program's termination, NULL will
 * be returned.
 *
 * @discussion
 * This function is only callable from within a debugger. It is not meant to be
 * called by the program directly.
 */
XPC_DEBUGGER_EXCL
const char *
xpc_debugger_api_misuse_info(void);

__END_DECLS

#endif // __XPC_DEBUG_H__