Macros | Functions
picotm-cast.h File Reference

Public interfaces of picotm's type-casting module. More...

#include <picotm/compiler.h>
#include <picotm/config/picotm-cast-config.h>

Macros

#define PICOTM_CAST_TX(__sname, __stype, __dname, __dtype, __dmin, __dmax)
 

Functions

PICOTM_NOTHROW void __picotm_cast_error_overflow_tx (void)
 
PICOTM_NOTHROW void __picotm_cast_error_underflow_tx (void)
 

Macro Definition Documentation

◆ 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
__snameThe name of the source type.
__stypeThe C type of the source value.
__dnameThe name of the destination type.
__dtypeThe C type of the destination value.
__dminThe minimum value of the destination type.
__dmaxThe maximum value of the destination type.

Function Documentation

◆ __picotm_cast_error_overflow_tx()

PICOTM_NOTHROW void __picotm_cast_error_overflow_tx ( void  )

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()

PICOTM_NOTHROW void __picotm_cast_error_underflow_tx ( void  )

Reports an underflow error to the transaction manager.

Warning
This is an internal interface. Don't use it in application code.