Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::wasm_ops::cached_ops< Op_Types > Class Template Reference

#include <wasm_sysio_binary_ops.hpp>

Static Public Member Functions

static std::vector< instr * > * get_cached_ops ()
 

Detailed Description

template<class Op_Types>
class sysio::chain::wasm_ops::cached_ops< Op_Types >

Section for cached ops

Definition at line 602 of file wasm_sysio_binary_ops.hpp.

Member Function Documentation

◆ get_cached_ops()

template<class Op_Types >
static std::vector< instr * > * sysio::chain::wasm_ops::cached_ops< Op_Types >::get_cached_ops ( )
inlinestatic

Definition at line 610 of file wasm_sysio_binary_ops.hpp.

610 {
611#define PUSH_BACK_OP( r, T, OP ) \
612 _cached_ops[BOOST_PP_CAT(OP,_code)] = BOOST_PP_CAT(T, OP).get();
613 if ( _cached_ops.empty() ) {
614 // prefill with error
615 _cached_ops.resize( 256, cached_error.get() );
616 BOOST_PP_SEQ_FOR_EACH( PUSH_BACK_OP, cached_ , WASM_OP_SEQ )
617 }
618#undef PUSH_BACK_OP
619 return &_cached_ops;
620 }
#define PUSH_BACK_OP(r, T, OP)
#define WASM_OP_SEQ

The documentation for this class was generated from the following file: