On Tue, 16 May 2023, Tony Finch <d...@dotat.at> wrote: > The __has_feature pseudo-macro interacts in fun ways with preprocessor > expression evaluation, because when it is undefined and you write > > #if defined(__has_feature) && __has_feature(thread_sanitizer) > > macro expansion gives you a syntax error > > #if 0 && 0(thread_sanitizer) > > so it must be split into two #if expressions, thus:
TIL. Thank you for that! -- Olivier Dion EfficiOS Inc. https://www.efficios.com _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev