Add support for var args as a function parameter
This commit is contained in:
@@ -42,7 +42,7 @@ void Function1(int a, float b, char const *c, bool e, int f, char *g)
|
||||
}
|
||||
|
||||
DQN_INSPECT_GENERATE_PROTOTYPE(foo = V3(10, 20), bar = {120, 150})
|
||||
void *Function2(V3 foo, V3 bar) { (void)foo; (void)bar; return nullptr; }
|
||||
void *Function2(V3 foo, V3 bar, ...) { (void)foo; (void)bar; return nullptr; }
|
||||
|
||||
DQN_INSPECT_GENERATE_PROTOTYPE()
|
||||
Array<int const *, 3> const *const Function3(Array<int, 32> const *foobar) { (void)foobar; return {}; }
|
||||
|
||||
@@ -230,7 +230,7 @@ DqnInspect_Struct const *DqnInspect_GetStruct(SampleStruct const *val)
|
||||
}
|
||||
|
||||
void Function1(int a, float b = {}, char const *c = nullptr, bool e = false, int f = 1, char *g = "Hello world");
|
||||
void *Function2(V3 foo = V3(10, 20), V3 bar = {120, 150});
|
||||
void *Function2(V3 foo = V3(10, 20), V3 bar = {120, 150}, ...);
|
||||
Array<int const *, 3> const *const Function3(Array<int, 32> const *foobar);
|
||||
|
||||
#undef ARRAY_COUNT
|
||||
|
||||
Reference in New Issue
Block a user