diff options
author | Andreas Fankhauser hiddenalpha.ch | 2024-10-05 12:36:41 +0200 |
---|---|---|
committer | Andreas Fankhauser hiddenalpha.ch | 2024-10-05 12:36:41 +0200 |
commit | e7cc8eafa03d975a6c6603cb5f143c68d1fcdd2b (patch) | |
tree | 6aaf8edc5fbc29b9a9b7b11ff48fbb101b8b51a9 /src/main/c/common/offset_of.h | |
parent | efea98c5f498bb7534e3ac3c0a58249e6a9e1763 (diff) | |
download | UnspecifiedGarbage-e7cc8eafa03d975a6c6603cb5f143c68d1fcdd2b.zip UnspecifiedGarbage-e7cc8eafa03d975a6c6603cb5f143c68d1fcdd2b.tar.gz |
Diffstat (limited to 'src/main/c/common/offset_of.h')
-rw-r--r-- | src/main/c/common/offset_of.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/main/c/common/offset_of.h b/src/main/c/common/offset_of.h deleted file mode 100644 index 7d9179d..0000000 --- a/src/main/c/common/offset_of.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef INCGUARD_yisgKqALPG4lfEqb -#define INCGUARD_yisgKqALPG4lfEqb - - -#define container_of(P, T, M) \ - ((T*)( ((size_t)P) - ((size_t)((char*)&((T*)0)->M - (char*)0) ))) - - -#endif /* INCGUARD_yisgKqALPG4lfEqb */ |