Embedded SDK
Embedded SDK
Macros
macros.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MEMBER_SIZE(type, member)   (sizeof(((type *) 0)->member))
 
#define WEAK   __attribute((weak))
 
#define ARRAY_LENGTH(array)   (sizeof((array)) / sizeof((array)[0]))
 

Macro Definition Documentation

◆ ARRAY_LENGTH

#define ARRAY_LENGTH (   array)    (sizeof((array)) / sizeof((array)[0]))

Definition at line 10 of file macros.h.

◆ MEMBER_SIZE

#define MEMBER_SIZE (   type,
  member 
)    (sizeof(((type *) 0)->member))

Macro for the size of a specific structure field.

Definition at line 6 of file macros.h.

◆ WEAK

#define WEAK   __attribute((weak))

Definition at line 8 of file macros.h.