mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Make sure this compiles on both C++ and C
This commit is contained in:
parent
05fd11c0aa
commit
c1c3a3caa0
@ -251,7 +251,11 @@ void q_skip_forward_to(struct mq *q, s64a min_loc) {
|
|||||||
// Dump the contents of the given queue.
|
// Dump the contents of the given queue.
|
||||||
static never_inline UNUSED
|
static never_inline UNUSED
|
||||||
void debugQueue(const struct mq *q) {
|
void debugQueue(const struct mq *q) {
|
||||||
|
#ifdef __cplusplus
|
||||||
if (q == nullptr) {
|
if (q == nullptr) {
|
||||||
|
#else
|
||||||
|
if (q == NULL) {
|
||||||
|
#endif
|
||||||
DEBUG_PRINTF("q=NULL!\n");
|
DEBUG_PRINTF("q=NULL!\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user