include dir
This commit is contained in:
4
include/acl/sizeof.h
Normal file
4
include/acl/sizeof.h
Normal 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)
|
||||
Reference in New Issue
Block a user