summaryrefslogtreecommitdiff
path: root/libcr_ipc/tests/test_sema.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-07 00:09:00 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-07 01:55:23 -0600
commit4d5a8b2f99be5e04954c5067080d1725af8c0ae7 (patch)
tree2b1d87719555eeb2159e7e79dcac5605dbb45c74 /libcr_ipc/tests/test_sema.c
parent599c887d12d406296f356a02b1088f04ffe1f26e (diff)
libcr_ipc: Pull as much as possible from public .h to .c files
Diffstat (limited to 'libcr_ipc/tests/test_sema.c')
-rw-r--r--libcr_ipc/tests/test_sema.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcr_ipc/tests/test_sema.c b/libcr_ipc/tests/test_sema.c
index 3208237..e5b22a5 100644
--- a/libcr_ipc/tests/test_sema.c
+++ b/libcr_ipc/tests/test_sema.c
@@ -5,6 +5,8 @@
*/
#include <libcr/coroutine.h>
+
+#define IMPLEMENTATION_FOR_LIBCR_IPC_SEMA_H YES /* so we can access .cnt */
#include <libcr_ipc/sema.h>
#include "test.h"
@@ -54,7 +56,7 @@ COROUTINE cr_consumer(void *_sema) {
}
int main() {
- cr_sema_t sema = {0};
+ cr_sema_t sema = {};
printf("== test 1 =========================================\n");
coroutine_add("first", cr_first, &sema);