]>
git.saurik.com Git - apple/security.git/blob - libsecurity_utilities/lib/debugging_internal.h
2 // debugging_internal.h
3 // libsecurity_utilities
5 // Created by ohjelmoija on 11/27/12.
9 #ifndef libsecurity_utilities_debugging_internal_h
10 #define libsecurity_utilities_debugging_internal_h
19 // Include DTrace static probe definitions
21 typedef const void *DTException
;
23 #include <security_utilities/utilities_dtrace.h>
26 // The debug-log macro is now unconditionally emitted as a DTrace static probe point.
29 void secdebug_internal(const char* scope
, const char* format
, ...);
31 #define secdebug(scope, format...) secdebug_internal(scope, format)
32 #define secdebugf(scope, __msg) SECURITY_DEBUG_LOG((char *)(scope), (__msg))
35 // The old secdelay() macro is also emitted as a DTrace probe (use destructive actions to handle this).
36 // Secdelay() should be considered a legacy feature; just put a secdebug at the intended delay point.
38 #define secdelay(file) SECURITY_DEBUG_DELAY((char *)(file))