| 396 | } |
| 397 | |
| 398 | void 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 | |
| 413 | void tableMojo ( TTable<char *,int> & in, const TBlock<void,TTable<char *,int>> & block, Context * context, LineInfoArg * at ) { |
| 414 | vec4f args[1]; |