picotm  0.4.0
Macros
picotm-lib-ptr.h File Reference
#include "compiler.h"
Include dependency graph for picotm-lib-ptr.h:

Macros

#define picotm_containerof(ptr, type, member)
 

Macro Definition Documentation

◆ picotm_containerof

#define picotm_containerof (   ptr,
  type,
  member 
)

Returns the container of a data structure.

Parameters
ptrA pointer to a data structure.
typeThe type of the container.
memberThe name of the container's member field.
Returns
A pointer to the container data structure.