Public interfaces of picotm's type-casting module.
More...
#include <picotm/compiler.h>
#include <picotm/config/picotm-cast-config.h>
|
#define | PICOTM_CAST_TX(__sname, __stype, __dname, __dtype, __dmin, __dmax) |
|
◆ PICOTM_CAST_TX
#define PICOTM_CAST_TX |
( |
|
__sname, |
|
|
|
__stype, |
|
|
|
__dname, |
|
|
|
__dtype, |
|
|
|
__dmin, |
|
|
|
__dmax |
|
) |
| |
Defines a C function that casts a value from a source type to a destination type.
- Parameters
-
__sname | The name of the source type. |
__stype | The C type of the source value. |
__dname | The name of the destination type. |
__dtype | The C type of the destination value. |
__dmin | The minimum value of the destination type. |
__dmax | The maximum value of the destination type. |
◆ __picotm_cast_error_overflow_tx()
Reports an overflow error to the transaction manager.
- Warning
- This is an internal interface. Don't use it in application code.
◆ __picotm_cast_error_underflow_tx()
Reports an underflow error to the transaction manager.
- Warning
- This is an internal interface. Don't use it in application code.