File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,12 @@ namespace swift {
47
47
// Set to 1 to enable helpful debug spew to stderr
48
48
// If this is enabled, tests with `swift_task_debug_log` requirement can run.
49
49
#if 0
50
+
50
51
#define SWIFT_TASK_DEBUG_LOG(fmt, ...) \
51
52
fprintf(stderr, "[%lu] [%s:%d](%s) " fmt "\n", \
52
53
(unsigned long)_swift_get_thread_id(), \
53
54
__FILE__, __LINE__, __FUNCTION__, \
54
55
__VA_ARGS__)
55
- #else
56
- #define SWIFT_TASK_DEBUG_LOG (fmt, ...) (void )0
57
- #endif
58
56
59
57
#if defined(_WIN32)
60
58
using ThreadID = decltype(GetCurrentThreadId());
@@ -70,6 +68,10 @@ inline ThreadID _swift_get_thread_id() {
70
68
#endif
71
69
}
72
70
71
+ #else
72
+ #define SWIFT_TASK_DEBUG_LOG (fmt, ...) (void )0
73
+ #endif
74
+
73
75
class AsyncTask ;
74
76
class TaskGroup ;
75
77
You can’t perform that action at this time.
0 commit comments