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

Function test_abi_func

modules/dasUnitTest/test_handles.cpp:368–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368Func test_abi_func ( Func a, Context * ctx ) {
369 bool found = false;
370 for ( int i=0; i!=ctx->getTotalFunctions(); ++i ) {
371 if ( ctx->getFunction(i)==a.PTR ) {
372 found = true;
373 break;
374 }
375 }
376 if ( !found ) ctx->throw_error("function not found");
377 return a;
378}
379
380TDim<int32_t,10> testCMRES ( Context * __context__ )
381{

Callers

nothing calls this directly

Calls 1

throw_errorMethod · 0.80

Tested by

no test coverage detected