Skip to content
RedstoneShell edited this page Oct 10, 2026 · 1 revision

DDEF_H

Linking by #include <ddef.h>.

doffsetof(type, member): size_t

Calculate offset (in bytes) of field (member) from start of structure (type)

dcontainer_of(ptr:void*, type, member): type*

Returns a pointer at all structure (type), knows only pointer (ptr) at one of he fields (member)

dcountof(arr:T[N]): size_t

Calculate count of elements in static array (arr)

Clone this wiki locally