On 2/23/21 2:07 AM, Claudio Fontana wrote: > is the code elimination for "if (0)" a guarantee, ie, we won't encounter > compiler or compiler-options differences, for the compilers we support? Yes, it's a guarantee.
> Is there some way to force the compilers to not even look at what is in the > if (0) block? No, it must be syntactically correct, and it must not reference variables that have not been declared. But that's a feature -- making sure that nothing has syntax errors in is a major improvement over ifdefs. > That should work also with --enable-debug? Yes. > This way we could avoid a lot of boilerplate/stubs... Eh, maybe, maybe not. Stubs may still be required, depending on how complex the condition is -- more than if (0). r~