Helper Reference Manual  1.7.1
strong_types.h File Reference

ODP Strong Types. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define odph_handle_t   struct { uint8_t unused_dummy_var; } *
 Use strong typing for ODPH types.
 
#define ODPH_HANDLE_T(type)   odph_handle_t type
 
#define _odph_typeval(handle)   ((uintptr_t)(handle))
 Internal macro to get value of an ODPH handle.
 
#define _odph_pri(handle)   ((uint64_t)(uintptr_t)(handle))
 Internal macro to get printable value of an ODPH handle.
 
#define _odph_cast_scalar(type, val)   ((type)(uintptr_t)(val))
 Internal macro to convert a scalar to a typed handle.
 

Detailed Description

ODP Strong Types.

Common macros for implementing strong typing for ODPH abstract data types

Definition in file strong_types.h.

Macro Definition Documentation

◆ ODPH_HANDLE_T

#define ODPH_HANDLE_T (   type)    odph_handle_t type

C helper macro for strong typing

Parameters
type
Returns

Definition at line 22 of file strong_types.h.