From 4690dae81f4b99bee1704be547651d590bb465a8 Mon Sep 17 00:00:00 2001 From: Andreas Fankhauser hiddenalpha.ch Date: Mon, 24 Nov 2025 00:48:01 +0100 Subject: Add few FN_ macros. --- include/qntan/Qntan.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/include/qntan/Qntan.h b/include/qntan/Qntan.h index cb1bcae..6f5a7fa 100644 --- a/include/qntan/Qntan.h +++ b/include/qntan/Qntan.h @@ -98,6 +98,25 @@ struct Qntan_CamtDec_Mentor; +#ifndef Qntan_EvLoop_enque +# define Qntan_EvLoop_enque(A, B, C) (*A)->enque(A, B, C) +#endif +#ifndef Qntan_EvLoop_awaitTokenAdd +# define Qntan_EvLoop_awaitTokenAdd(A) (*A)->addAwaitToken(A) +#endif +#ifndef Qntan_EvLoop_awaitTokenDel +# define Qntan_EvLoop_awaitTokenDel(A) (*A)->delAwaitToken(A) +#endif +#ifndef Qntan_EvLoop_runUntilPause +# define Qntan_EvLoop_runUntilPause(A) (*A)->runUntilPause(A) +#endif +#ifndef Qntan_EvLoop_runUntilDone +# define Qntan_EvLoop_runUntilDone(A) (*A)->runUntilDone(A) +#endif +#ifndef Qntan_EvLoop_isEvLoopThread +# define Qntan_EvLoop_isEvLoopThread(A) (*A)->isEvLoopThread(A) +#endif + struct Qntan_EvLoop { void (*enque)( struct Qntan_EvLoop**, void(*fn)(Qntan_Cls), Qntan_Cls ); @@ -131,6 +150,10 @@ struct Qntan_EvLoop { +#ifndef Qntan_Mallocator_realloc +# define Qntan_Mallocator_realloc(A, B, C, D) (*A)->realloc(A, B, C, D) +#endif + struct Qntan_Mallocator { /**/ void* (*realloc)( -- cgit v1.3.1