> > As far as I can > > tell this just involves moving the start of namespace selftest > > upwards a > > bit in the files where we have tests. > > Yes, and it does seem cleaner to have all of the selftest code start > like this: > > #if CHECKING_P
What are we gaining by ifdefing this? I would think on reasonable systems the compiler would optimize out the call to the selftests in release builds and then the linker would gc all the unused functions. Do we really care about code size in places that doesn't happen enough to go through this? Thanks! Trev