diff options
Diffstat (limited to 'liberty.c')
-rw-r--r-- | liberty.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -112,6 +112,9 @@ extern char **environ; #define STRINGIFY(x) #x #define XSTRINGIFY(x) STRINGIFY (x) +#define CONTAINER_OF(pointer, type, member) \ + ((type *) ((char *) pointer - offsetof (type, member))) + // --- Logging ----------------------------------------------------------------- static void |