83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
RegisterBuiltinFunc< Intrinsic< void ( TypeWrapper< ptr< CodeBuilder > >, Value, uint32_t ) > >( e, e.extDeclareValue(),
[]( auto&& c, const Value& cbv, const Value& v, const Value& index )
{
auto cb = *FromValue< TypeWrapper< ptr< CodeBuilder > > >( cbv );
cb->declareValue( v, *FromValue< uint32_t >( index ) );
} );
RegisterBuiltinFunc< Intrinsic< bool ( TypeWrapper< ptr< CodeBuilder > > ) > >( e, e.extDestroyCurrentLifetimeScopeValues(),
[]( auto&& c, const Value& cbv )
{
auto cb = *FromValue< TypeWrapper< ptr< CodeBuilder > > >( cbv );
return ToValue( cb->destroyCurrentLifetimeScopeValues( c ) );
} );
|
>
>
>
>
>
>
>
|
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
RegisterBuiltinFunc< Intrinsic< void ( TypeWrapper< ptr< CodeBuilder > >, Value, uint32_t ) > >( e, e.extDeclareValue(),
[]( auto&& c, const Value& cbv, const Value& v, const Value& index )
{
auto cb = *FromValue< TypeWrapper< ptr< CodeBuilder > > >( cbv );
cb->declareValue( v, *FromValue< uint32_t >( index ) );
} );
RegisterBuiltinFunc< Intrinsic< bool ( TypeWrapper< ptr< CodeBuilder > >, Value ) > >( e, e.extDestroyLiveValue(),
[]( auto&& c, const Value& cbv, const Value& val )
{
auto cb = *FromValue< TypeWrapper< ptr< CodeBuilder > > >( cbv );
return ToValue( cb->destroyLiveValue( c, val ) );
} );
RegisterBuiltinFunc< Intrinsic< bool ( TypeWrapper< ptr< CodeBuilder > > ) > >( e, e.extDestroyCurrentLifetimeScopeValues(),
[]( auto&& c, const Value& cbv )
{
auto cb = *FromValue< TypeWrapper< ptr< CodeBuilder > > >( cbv );
return ToValue( cb->destroyCurrentLifetimeScopeValues( c ) );
} );
|