On 23.09.24 16:57, ichthyo wrote:
#ifdef GUI_FLTK ///.................original code here #else guiDataExchange{[this](CommandBlock const& block){ /* do nothing */ }}, #endif
...err, leave the argument name out, otherwise the compiler will print a warning; we can also leave out the this-closure in that case, so effectively the optimiser will then be able to remove any related invocation altogether > guiDataExchange{[](CommandBlock const&){ /* do nothing */ }}, _______________________________________________ Yoshimi-devel mailing list Yoshimi-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/yoshimi-devel