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

Function tempArrayExample

modules/dasUnitTest/test_handles.cpp:333–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331#endif
332
333bool tempArrayExample( const TArray<char *> & arr,
334 const TBlock<void, TTemporary<const TArray<char *>>> & blk, Context * context, LineInfoArg * at ) {
335 vec4f args[1];
336 args[0] = cast<void *>::from(&arr);
337 context->invoke(blk, args, nullptr, at);
338 return (arr.size == 1) && (strcmp(arr[0], "one") == 0);
339}
340
341void testPoint3Array(const TBlock<void,const Point3Array> & blk, Context * context, LineInfoArg * at) {
342 Point3Array arr;

Callers

nothing calls this directly

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected