MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / make_struct_with_array

Function make_struct_with_array

compute/test/test_struct.cpp:135–143  ·  view source on GitHub ↗

Creates a StructWithArray containing 'x', 'y', 'z'.

Source from the content-addressed store, hash-verified

133
134// Creates a StructWithArray containing 'x', 'y', 'z'.
135StructWithArray make_struct_with_array(int x, int y, int z)
136{
137 StructWithArray s;
138 s.value = 0;
139 s.array[0] = x;
140 s.array[1] = y;
141 s.array[2] = z;
142 return s;
143}
144
145BOOST_AUTO_TEST_CASE(struct_with_array)
146{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected