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

Function testFooArray

modules/dasUnitTest/test_handles.cpp:398–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398void testFooArray(const TBlock<void,FooArray> & blk, Context * context, LineInfoArg * at) {
399 FooArray arr;
400 arr.reserve(16);
401 for (int32_t x = 0; x != 10; ++x) {
402 TestObjectFoo p;
403 p.fooData = x;
404 p.foo_loop = nullptr;
405 p.lookAt = nullptr;
406 arr.push_back(p);
407 }
408 vec4f args[1];
409 args[0] = cast<FooArray *>::from(&arr);
410 context->invoke(blk, args, nullptr, at);
411}
412
413void tableMojo ( TTable<char *,int> & in, const TBlock<void,TTable<char *,int>> & block, Context * context, LineInfoArg * at ) {
414 vec4f args[1];

Callers

nothing calls this directly

Calls 3

reserveMethod · 0.45
push_backMethod · 0.45
invokeMethod · 0.45

Tested by

no test coverage detected