From c1c3a3caa0a37de4cd17dc94a74c8914f5c55580 Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Wed, 28 May 2025 19:43:01 +0000 Subject: [PATCH] Make sure this compiles on both C++ and C --- src/nfa/nfa_api_queue.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nfa/nfa_api_queue.h b/src/nfa/nfa_api_queue.h index 3f8bca2c..c1274bd1 100644 --- a/src/nfa/nfa_api_queue.h +++ b/src/nfa/nfa_api_queue.h @@ -251,7 +251,11 @@ void q_skip_forward_to(struct mq *q, s64a min_loc) { // Dump the contents of the given queue. static never_inline UNUSED void debugQueue(const struct mq *q) { +#ifdef __cplusplus if (q == nullptr) { +#else + if (q == NULL) { +#endif DEBUG_PRINTF("q=NULL!\n"); return; }