Support templates in function arguments

This commit is contained in:
2019-03-21 00:52:31 +11:00
parent f2cbbc3a8c
commit 2f750ecc52
3 changed files with 32 additions and 14 deletions
+1 -1
View File
@@ -40,4 +40,4 @@ DQN_INSPECT_GENERATE_PROTOTYPE()
void *Function2() { }
DQN_INSPECT_GENERATE_PROTOTYPE()
Array<int const *, 3> const *const Function3() { }
Array<int const *, 3> const *const Function3(Array<int, 32> const *foobar) { }
+3 -3
View File
@@ -60,13 +60,13 @@ DqnInspect_StructMember const DqnInspect_SampleStruct_StructMembers[] =
{
{
STR_AND_LEN("Array"), STR_AND_LEN("lights"),
STR_AND_LEN("V3, 3"), // template_expr
STR_AND_LEN("V3, 32"), // template_expr
nullptr, 0, // metadata and metadata_len
0 // array_dimensions
},
{
STR_AND_LEN("Array"), STR_AND_LEN("camera_matrixes"),
STR_AND_LEN("V4, 3"), // template_expr
STR_AND_LEN("V4, 32"), // template_expr
nullptr, 0, // metadata and metadata_len
0 // array_dimensions
},
@@ -226,7 +226,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();
Array<int const *, 3> const *const Function3();
Array<int const *, 3> const *const Function3(Array<int, 32> const *foobar);
#endif // DQN_INSPECT_DQNINSPECT_TESTDATA_H