diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-07 20:29:35 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-07 20:29:35 -0600 |
commit | d053a0f6dffc575611324b81acaef0d1554bda6c (patch) | |
tree | 3eb702a06625ef1f6be0648f7fec311b628808e9 /libcr_ipc/tests/test_sema.c | |
parent | 33b7cf675238367db2fc0528dea103d7792eaa0e (diff) | |
parent | 062e063f76c5937be4dc8465f6471ff9b5eb7be9 (diff) |
Merge branch 'lukeshu/ipc'
Diffstat (limited to 'libcr_ipc/tests/test_sema.c')
-rw-r--r-- | libcr_ipc/tests/test_sema.c | 4 |
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); |