Embedded SDK
Embedded SDK
macros.h
Go to the documentation of this file.
1 #pragma once
2 
6 #define MEMBER_SIZE(type, member) (sizeof(((type *) 0)->member))
7 
8 #define WEAK __attribute((weak))
9 
10 #define ARRAY_LENGTH(array) (sizeof((array)) / sizeof((array)[0]))