Is there a way to use __fl_attr() for class methods
like Fl_Text_Buffer::printf() and Fl_Text_Buffer::vprintf()?
I assumed something like this would work, but it fails with weird
errors:
/usr/local/src/fltk-1.4.x.git/FL/fl_attr.h:53:40: error: 'format' attribute argument 2 value '1' refers to parameter type 'Fl_Text_Buffer*'
53 | # define __fl_attr(x) __attribute__ (x)
| ^
/usr/local/src/fltk-1.4.x.git/FL/Fl_Text_Buffer.H:293:45: note: in expansion of macro '__fl_attr'
293 | void vprintf(const char *fmt, va_list ap) __fl_attr((__format__(__printf__, 1, 0)));
| ^~~~~~~~~
/usr/local/src/fltk-1.4.x.git/FL/fl_attr.h:53:40: error: 'format' attribute argument 2 value '1' refers to parameter type 'Fl_Text_Buffer*'
53 | # define __fl_attr(x) __attribute__ (x)
| ^
/usr/local/src/fltk-1.4.x.git/FL/Fl_Text_Buffer.H:294:45: note: in expansion of macro '__fl_attr'
294 | void printf(const char* fmt, ...) __fl_attr((__format__(__printf__, 1, 2)));
| ^~~~~~~~~
On 26. Jan 2023, at 04:37, Greg Ercolano <er...@seriss.com> wrote:
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/85a78e20-7748-f6a3-8f01-532510dfde4a%40seriss.com.