mirror of
https://github.com/Hizenberg469/Generic_Notification_Chain.git
synced 2026-04-20 02:22:25 +03:00
Publisher and Subscriber
This commit is contained in:
@@ -44,7 +44,7 @@ glthread_add_last(glthread_t *base_glthread, glthread_t *new_glthread);
|
||||
#define IS_GLTHREAD_LIST_EMPTY(glthreadptr) \
|
||||
((glthreadptr)->right == 0 && (glthreadptr)->left == 0)
|
||||
|
||||
#define GLTHREAD_TO_STRUCT(fn_name, structure_name, field_name,glthreadptr) \
|
||||
#define GLTHREAD_TO_STRUCT(fn_name, structure_name, field_name) \
|
||||
static inline structure_name * fn_name(glthread_t *glthreadptr){ \
|
||||
if(glthreadptr)\
|
||||
return (structure_name *)((char *)(glthreadptr) - (char *)&(((structure_name *)0)->field_name)); \
|
||||
|
||||
Reference in New Issue
Block a user