#ifndef GENERATED_OFFSETS_BUILD_H
#define GENERATED_OFFSETS_BUILD_H

#define DEFINE(name, value) \
    __asm__ volatile(".ascii \"GENERATED_INTEGER " #name " %p0 \"\n" ::"i"(value))

#define OFFSET(name, str, member)     DEFINE(name, offsetof(struct str, member))
#define OFFSET_T(name, str_t, member) DEFINE(name, offsetof(str_t, member))

#endif /* GENERATED_OFFSETS_BUILD_H */
