[quote=295325:@Christian Schmitz]The “()” in the property name is not right.
[/quote]
I really don’t have a clue how to do that. This
{NULL, "y", "Double()", REALconsoleSafe, REALstandardGetter, REALstandardSetter, FieldOffset(StructTest, y)},
will produce syntax error, while
{NULL, "y", "Double", REALconsoleSafe, REALstandardGetter, REALstandardSetter, FieldOffset(StructTest, y)},
is a non-array definition. Can you please give me a clue about that?
[quote=295325:@Christian Schmitz]
and don’t you normally pass a list of class objects to module registration?[/quote]
Maybe I’m doing something wrong. I’ve tried this code
REALclassDefinition sc[] = {class1, class2};
REALclassDefinition* tsc = sc;
REALclassDefinition** classDef = &tsc;
REALmoduleDefinition Module1 = {
...,
classDef, sizeof(classDef) / sizeof(classDef[0]),
};
but only first class is shown in the IDE autocomplete. Similar to this code.
REALclassDefinition sc[] = {class1, class2};
REALclassDefinition* tsc = sc;
REALclassDefinition** classDef = &tsc;
REALmoduleDefinition Module1 = {
...,
&tsc, sizeof(*tsc) / sizeof(tsc[0]),
};
and this will produce segmentation fault.
REALclassDefinition sc[] = {class1, class2};
REALclassDefinition* tsc = sc;
REALclassDefinition** classDef = &tsc;
REALmoduleDefinition Module1 = {
...,
&tsc, 2,
};