5 lines
206 B
C
5 lines
206 B
C
/* 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)
|