|
|
Albrecht Schlosser schrieb am Dienstag, 9. Mai 2023 um 21:33:16 UTC+2:
I
can of course rewrite this to use a trailing number for number of
arguments... : `FL_FUNCTION_CALLBACK_3(btn,
something, int, a, 3, int, b, 4, int, c, 5)`
This would be an interesting change because it would make sure that
you assign the correct number of arguments (triplets) for every
macro. Should be considered, IMHO. Even better if it also increases
compatibility...
Unfortunately we can't have it both. The compiler throws an error es soon as it sees the ellipsis (...). But I could disable the varargs version if fl_attr.h determines a really old compiler.
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/15be28b9-6927-4b01-935e-14b2aff6f24bn%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |