summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/qntan/Qntan.h23
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)(