include dir

This commit is contained in:
2020-10-28 19:35:03 +01:00
parent b24fef08bf
commit 285f43f65a
3 changed files with 21 additions and 0 deletions

4
include/acl/sizeof.h Normal file
View File

@ -0,0 +1,4 @@
/* The following macro alows the usage of the sizeof operator without an identifier */
#include <stddef.h>
#define acl_sizeof(type) offsetof(struct{type a; char b;}, b)
offsetof(struct{type a; char b;}, b)