[cfe-dev] Goal for 3.5: Library-friendly headers

NAKAMURA Takumi geek4civic at gmail.com
Sun Nov 10 23:37:42 PST 2013


2013/11/10 Alp Toker <alp at nuanti.com>:
> #ifndef NDEBUG
>
> This is the biggest violation. NDEBUG should only ever be used in source
> files. That way if something is crashing we can swap in a debug build
> without rebuilding every single dependent application. Win!

I wish;

  - NDEBUG may not modify API. class structure (member offset, vtables)
    should be stable and identical among Release builds and Debug builds.
  - NDEBUG may keep and add facilities.



More information about the cfe-dev mailing list