diff options
| author | Andreas Fankhauser hiddenalpha.ch | 2025-11-24 00:48:01 +0100 |
|---|---|---|
| committer | Andreas Fankhauser hiddenalpha.ch | 2025-11-24 00:48:01 +0100 |
| commit | 4690dae81f4b99bee1704be547651d590bb465a8 (patch) | |
| tree | fa24ed5fe7033258ba7531dd1052aa87995befdf /include | |
| parent | bde648cc5263a8c07758b604e57c2e7128d378bb (diff) | |
| download | Qntan-4690dae81f4b99bee1704be547651d590bb465a8.tar.gz Qntan-4690dae81f4b99bee1704be547651d590bb465a8.zip | |
Add few FN_ macros.
Diffstat (limited to 'include')
| -rw-r--r-- | include/qntan/Qntan.h | 23 |
1 files changed, 23 insertions, 0 deletions
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)( |
