43
43
#include <stdint.h>
44
44
#include <stdbool.h>
45
45
#include <sys/cdefs.h>
46
+
47
+ #if OPENSWIFTUI_TARGET_OS_OSX
46
48
#include <sys/kdebug.h>
49
+ #endif
47
50
48
51
#include <Availability.h>
49
52
69
72
*
70
73
* On error, -1 will be returned and errno will indicate the error.
71
74
*/
72
- int kdebug_trace (uint32_t code , uint64_t arg1 , uint64_t arg2 , uint64_t arg3 ,
75
+ OPENSWIFTUI_EXPORT int kdebug_trace (uint32_t code , uint64_t arg1 , uint64_t arg2 , uint64_t arg3 ,
73
76
uint64_t arg4 )
74
77
__OSX_AVAILABLE (10.10 ) __IOS_AVAILABLE (8.2 );
75
78
@@ -137,7 +140,7 @@ __OSX_AVAILABLE(10.10) __IOS_AVAILABLE(8.2);
137
140
* EFAULT
138
141
* `str` is an invalid address or NULL when `str_id` is 0.
139
142
*/
140
- extern uint64_t kdebug_trace_string (uint32_t debugid , uint64_t str_id ,
143
+ OPENSWIFTUI_EXPORT uint64_t kdebug_trace_string (uint32_t debugid , uint64_t str_id ,
141
144
const char * str )
142
145
__OSX_AVAILABLE (10.11 ) __IOS_AVAILABLE (9.0 );
143
146
@@ -156,7 +159,7 @@ __OSX_AVAILABLE(10.11) __IOS_AVAILABLE(9.0);
156
159
* If tracing is enabled for the code at the time of the check, 1
157
160
* will be returned. Otherwise, 0 will be returned.
158
161
*/
159
- extern bool kdebug_is_enabled (uint32_t code )
162
+ OPENSWIFTUI_EXPORT bool kdebug_is_enabled (uint32_t code )
160
163
__OSX_AVAILABLE (10.12 ) __IOS_AVAILABLE (10.0 )
161
164
__WATCHOS_AVAILABLE (3.0 ) __TVOS_AVAILABLE (10.0 );
162
165
0 commit comments