MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / invoke

Method invoke

include/daScript/simulate/aot.h:2326–2335  ·  view source on GitHub ↗

vector cast

Source from the content-addressed store, hash-verified

2324 struct das_invoke {
2325 // vector cast
2326 static __forceinline ResType invoke ( Context * __context__, LineInfo * __lineinfo__, const Block & blk ) {
2327 using BlockFn = callable < ResType () >;
2328 if ( blk.aotFunction ) {
2329 auto fn = (BlockFn *) blk.aotFunction;
2330 return (*fn) ();
2331 } else {
2332 vec4f result = __context__->invoke(blk, nullptr, nullptr,__lineinfo__);
2333 return cast<ResType>::to(result);
2334 }
2335 }
2336 template <typename ...ArgType>
2337 static __forceinline ResType invoke ( Context * __context__, LineInfo * __lineinfo__, const Block & blk, ArgType ...arg ) {
2338 using BlockFn = callable < ResType ( ArgType... ) >;

Callers 15

test_das_stringFunction · 0.45
tempArrayExampleFunction · 0.45
testPoint3ArrayFunction · 0.45
testFooArrayFunction · 0.45
tableMojoFunction · 0.45
tempArrayAliasExampleFunction · 0.45
das_httpr_each_paramFunction · 0.45
das_httpreq_each_cookieFunction · 0.45
das_httpresp_each_cookieFunction · 0.45
exec_callbackFunction · 0.45
stbi_write_png_to_memoryFunction · 0.45

Calls 1

toFunction · 0.85

Tested by 6

test_das_stringFunction · 0.36
tempArrayExampleFunction · 0.36
testPoint3ArrayFunction · 0.36
testFooArrayFunction · 0.36
tableMojoFunction · 0.36
tempArrayAliasExampleFunction · 0.36