Skip to content

Commit 303e431

Browse files
committed
proper error messages
1 parent 13fa3c2 commit 303e431

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

private/private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ typedef mach_port_t dispatch_runloop_handle_t;
181181
#elif defined(__linux__)
182182
typedef int dispatch_runloop_handle_t;
183183
#else
184-
#error
184+
#error "runloop support not implemented on this platform"
185185
#endif
186186

187187
#if TARGET_OS_MAC

src/queue.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4073,7 +4073,7 @@ _dispatch_runloop_handle_is_valid(dispatch_runloop_handle_t handle)
40734073
#elif defined(__linux__)
40744074
return handle >= 0;
40754075
#else
4076-
#error
4076+
#error "runloop support not implemented on this platform"
40774077
#endif
40784078
}
40794079

@@ -4086,7 +4086,7 @@ _dispatch_runloop_queue_get_handle(dispatch_queue_t dq)
40864086
#elif defined(__linux__)
40874087
return ((dispatch_runloop_handle_t)(uintptr_t)dq->do_ctxt) - 1;
40884088
#else
4089-
#error
4089+
#error "runloop support not implemented on this platform"
40904090
#endif
40914091
}
40924092

@@ -4099,7 +4099,7 @@ _dispatch_runloop_queue_set_handle(dispatch_queue_t dq, dispatch_runloop_handle_
40994099
#elif defined(__linux__)
41004100
dq->do_ctxt = (void *)(uintptr_t)(handle + 1);
41014101
#else
4102-
#error
4102+
#error "runloop support not implemented on this platform"
41034103
#endif
41044104
}
41054105

@@ -4186,7 +4186,7 @@ _dispatch_runloop_queue_class_poke(dispatch_queue_t dq)
41864186
} while (result == -1 && errno == EINTR);
41874187
(void)dispatch_assume_zero(result);
41884188
#else
4189-
#error
4189+
#error "runloop support not implemented on this platform"
41904190
#endif
41914191
}
41924192

@@ -5677,7 +5677,7 @@ _dispatch_runloop_queue_handle_init(void *ctxt)
56775677
#elif defined(__linux__)
56785678
handle = eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK);
56795679
#else
5680-
#error
5680+
#error "runloop support not implemented on this platform"
56815681
#endif
56825682
(void)dispatch_assume(_dispatch_runloop_handle_is_valid(handle));
56835683
_dispatch_runloop_queue_set_handle(dq, handle);
@@ -5704,7 +5704,7 @@ _dispatch_runloop_queue_handle_dispose(dispatch_queue_t dq)
57045704
int rc = close(handle);
57055705
(void)dispatch_assume_zero(rc);
57065706
#else
5707-
#error
5707+
#error "runloop support not implemented on this platform"
57085708
#endif
57095709
}
57105710

0 commit comments

Comments
 (0)