MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / fun

Function fun

test/core/test_struct_varargs.c:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20} color;
21
22void fun(int a, ...) {
23 (void)a;
24 va_list ap;
25 va_start(ap, a);
26
27 coords var1 = va_arg(ap, coords);
28 color var2 = va_arg(ap, color);
29 printf("va_arg coords: %d and %d\n", var1.x, var1.y);
30 printf("va_arg color: %d, %d, %d\n", var2.r, var2.g, var2.b);
31
32 va_end(ap);
33}
34
35int main(void) {
36 coords val1 = { .x = 42, .y = 21 };

Callers 2

mainFunction · 0.70

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected