This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add new cpp predef macro __SAFE_FILE__ to improve compile-time assertions.
On 24 Apr 2007 13:13:50 -0700, Ian Lance Taylor <iant@google.com> wrote:
Ollie Wild has a patch to implement __COUNTER__.
I believe it is waiting on approval of -fdirectives-only.
http://gcc.gnu.org/ml/gcc-patches/2007-02/msg02178.html
http://gcc.gnu.org/ml/gcc-patches/2007-03/msg00786.html
Ollie, please correct me if I am wrong.
That's correct. Because the -fdirectives-only option interferes with
the normal order of macro expansion, it can interfere with the
__COUNTER__ macro in some cases. Since the patches are dependent, I'm
waiting for the first to get committed before I submit the latter.
Thankfully, the steering committee has finally formalized preprocessor
maintainership, so I'm hopeful that the directives-only patch will be
committed soon.
Ollie