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 {
4747// Set to 1 to enable helpful debug spew to stderr
4848// If this is enabled, tests with `swift_task_debug_log` requirement can run.
4949#if 0
50+
5051#define SWIFT_TASK_DEBUG_LOG(fmt, ...) \
5152 fprintf(stderr, "[%lu] [%s:%d](%s) " fmt "\n", \
5253 (unsigned long)_swift_get_thread_id(), \
5354 __FILE__, __LINE__, __FUNCTION__, \
5455 __VA_ARGS__)
55- #else
56- #define SWIFT_TASK_DEBUG_LOG (fmt, ...) (void )0
57- #endif
5856
5957#if defined(_WIN32)
6058using ThreadID = decltype(GetCurrentThreadId());
@@ -70,6 +68,10 @@ inline ThreadID _swift_get_thread_id() {
7068#endif
7169}
7270
71+ #else
72+ #define SWIFT_TASK_DEBUG_LOG (fmt, ...) (void )0
73+ #endif
74+
7375class AsyncTask ;
7476class TaskGroup ;
7577
You can’t perform that action at this time.
0 commit comments