[Development] Could support for C be added to Qt?
Kevin Kofler
kevin.kofler at chello.at
Sun Sep 11 16:54:37 CEST 2022
samuel ammonius wrote:
> I made a mistake in my example of QPushButton_setFlat(). the parameters
> should have been (QPushButton *, bool) instead of just (bool).
But then you probably need to rewrite QT_C_EXPORT as a variadic macro,
unless you want to pass the parameter list twice, because the PARAMS
parameter requires enclosing the parameter list in parentheses (because it
can contain commas), at which point the macro would produce something like
(QPushButton *, (bool)) for the C case, which in this particular case
probably happens to work, but not for, e.g., (QPushButton *, (bool, int)).
Kevin Kofler
More information about the Development
mailing list