Helper Reference Manual
1.7.1
|
ODP Strong Types. More...
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. | |
ODP Strong Types.
Common macros for implementing strong typing for ODPH abstract data types
Definition in file strong_types.h.
#define ODPH_HANDLE_T | ( | type | ) | odph_handle_t type |
C helper macro for strong typing
type |
Definition at line 22 of file strong_types.h.