MCPcopy Create free account
hub / github.com/ThePhD/sol2 / va_func

Function va_func

tests/run_time/source/functions.cpp:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31template <typename T>
32T va_func(sol::variadic_args va, T first) {
33 (void)first;
34 T s = 0;
35 for (auto arg : va) {
36 T v = arg;
37 s += v;
38 }
39
40 return s;
41}
42
43struct A {
44 int a = 0xA;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected