Sign in
hafnium
/
hafnium
/
8c4e475532e7e09719b21f6bc2ea4f62b8c7b2c1
/
.
/
inc
/
decl_offsets.h
blob: fbcff34a0472a6173cd193003801eacc8cbdcf78 [
file
] [
log
] [
blame
]
#ifndef
_DECL_OFFSETS_H
#define
_DECL_OFFSETS_H
#define
DECL
(
name
,
type
,
field
)
\
const
size_t
DEFINE_OFFSET__
##name = offsetof(type, field)
#define
DECL_SIZE
(
name
,
type
)
const
size_t
DEFINE_OFFSET__name
=
sizeof
(
type
)
#endif
/* _DECL_OFFSETS_H */