#ifndef _MAIN_H_ #define _MAIN_H_ // Calculate the byte offset of a field in a structure of type type. #define FIELD_OFFSET(type, field) ((uint32_t)(uint32_t*)&(((type *)0)->field)) #endif