https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77488

--- Comment #7 from R. Diez <rdiezmail-gcc at yahoo dot de> ---
(In reply to Piotr Henryk Dabrowski from comment #6)
> You can use:
> 
> #line 2 "FileName.cpp"
> 
> at the very top (!) of all your files
> to change the content of __FILE__.
> This also affects compiler messages.

I do not want to override __FILE__. Its original content may be needed for
something else. I just want an alternative to generate smaller asserts.

Besides, maintaining such a "#line" hack in all files is uncomfortable. I
already mentioned that I am including other libraries with their own source
code and build systems. I need a way to tweak the assert definition for all of
them in Newlib. Otherwise, I have to patch all components everywhere.

Reply via email to