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

Function with_values

tutorials/integration/cpp/07_callbacks.cpp:40–44  ·  view source on GitHub ↗

A simpler example: call a void block with two arguments.

Source from the content-addressed store, hash-verified

38
39// A simpler example: call a void block with two arguments.
40void with_values(int32_t a, int32_t b,
41 const TBlock<void, int32_t, int32_t> & blk,
42 Context * context, LineInfoArg * at) {
43 das_invoke<void>::invoke(context, at, blk, a, b);
44}
45
46// Predicate filter: call block for each element, collect those that pass.
47int32_t count_matching(const TArray<int32_t> & arr,

Callers

nothing calls this directly

Calls 1

invokeFunction · 0.50

Tested by

no test coverage detected