|
|
Ok, so I used https://godbolt.org (awesome!) to compile with any meaningful compiler down to Spark, Webassembly, ESP32, and llvm for Commodore C46. Lowest gcc available is 4.8.5. MSVC does not go low at all. The code does compile a test macro on each and every one of them. Only if I set `-std=c++98` and pedantic, I will get an error: anonymous variadic macros were introduced in C99. Not sure if that is acceptable. 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)`
melcher....@googlemail.com schrieb am Montag, 8. Mai 2023 um 15:32:43 UTC+2:
Thanks for all the input. Very helpful! This is in reference to this PR: https://github.com/fltk/fltk/pull/729 . The macros in question are very unreadable, but the unwrapped some is at the bottom of the file. Basically, I am emulating Lambdas for callbacks using old-style C++ and macros.
A test program is in the examples folder:
--
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/311f80f5-ca1d-4d8a-b3b5-63802901ec27n%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |