If this is "just beer talk", then I truly wonder why I get summoned ...
@AnneRanch said in another goofy "feature ":
@kshegunov Yes - it must be hard for linker to find the function in #ifdef BYPASS ...#endif block.
That is UNUSED code block...
Indeed it must be hard for the linker, since the linker has no notion of source code, nor of #ifdef and alike preprocessor tokens. I think I've mentioned before, that it's truly beneficial to know C++ before claiming to use it, or a library for it.
In any case, the linker sees the prototype of the function (which is its name, also called a symbol) and it has the singular task of linking all calls to that function to the place that symbol is defined (at low level). There's no source at this point, no preprocessor, no compiler or w/e. The linker is the same machinery for all languages on a platform.
Even if it was used code block - how did it get placed there ?
This question is for you to answer. I'm certainly not going to ask my crystal ball.