mbgtools-lx  4.2.8
mbg_cof.h File Reference
#include <mbg_tgt.h>
#include <stddef.h>

Go to the source code of this file.

Macros

#define _ext   extern
 
#define mbg_container_of(_ptr, _type, _member)
 

Macro Definition Documentation

◆ _ext

#define _ext   extern

Definition at line 37 of file mbg_cof.h.

◆ mbg_container_of

#define mbg_container_of (   _ptr,
  _type,
  _member 
)
Value:
({ \
const typeof( ((_type *)0)->_member ) *__mptr = (_ptr); \
(_type *)((char *)__mptr - offsetof(_type,_member));})

Definition at line 52 of file mbg_cof.h.