On Sat, 2016-05-28 at 12:05 -0700, Daniel Gimpelevich wrote: > On Sat, 2016-05-28 at 13:31 +0300, Antony Pavlov wrote: > > Can we use 'if' instead of preprocessor's '#if' here? > > > > If we use regular C 'if' operator with IS_ENABLED() instead of > > '#if/#ifdef' > > then the compiler can check all the code. > > > > E.g. please see this barebox patch: > > > > > > http://lists.infradead.org/pipermail/barebox/2014-February/017834.html > > Sigh. I guess I will resubmit again… Upon further review, no, we cannot use 'if' instead of '#if' here. The reference to the appended DTB would throw a linker error if the option to put it there is not enabled. Sorry.