On Thu, Jun 4, 2020 at 9:58 AM Thomas Gleixner [off-list ref] wrote:
but if we ever lose the 1 then the above will silently compile the code
within the IS_ENABLED() section out.
Yeah, I believe `IS_ENABLED()` is only meant for Kconfig symbols, not
macro defs in general. A better option would be `__is_defined()` which
works for defined-to-nothing too.
Cheers,
Miguel
Thread (51 messages)
51 messages,
12 authors,
last reply 2020-06-15