summaryrefslogtreecommitdiff
path: root/include/libk/container_of.h
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2025-01-12 01:17:36 -0600
committerDanny Holman <dholman@gymli.org>2025-01-12 01:19:11 -0600
commit95cd78840f0891e60f5ebecc8a8eb4fbaf3c2ebf (patch)
treec8c35347b50477929727fa5be9f5d0f55cbe18fd /include/libk/container_of.h
parent5e166f3042a8e7b3031aae4da7006f80caa53ecc (diff)
PROJECT RESTRUCTURING
Move the entire kernel into its own directory. Create new directories for system commands, libraries and other required essentials for a complete Unix-like operating system. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'include/libk/container_of.h')
-rw-r--r--include/libk/container_of.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/libk/container_of.h b/include/libk/container_of.h
deleted file mode 100644
index fdc400c..0000000
--- a/include/libk/container_of.h
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifndef LIBK_CONTAINER_OF_H
-#define LIBK_CONTAINER_OF_H
-
-#ifndef container_of
-#define container_of(ptr, type, member) ({ \
- const typeof(((type*)0)->member)*__mptr = (ptr); \
- (type*)((char*)__mptr - offsetof(type, member)); })
-#endif
-
-#endif