Alternative to __FILE__/__LINE__
François Dumont
frs.dumont@gmail.com
Sun Mar 4 20:18:00 GMT 2018
Hi
   Debug mode is using __FILE__/__LINE__ to show where the assertion
took place. So assertion looks like this:
/home/fdt/dev/gcc/build/x86_64-pc-linux-gnu/libstdc++-v3/include/debug/deque:175:
Error: function requires a valid iterator range [__first, __last).
   But IMHO a smarter information would be to provide the file:line in
the source code that generated this assertion so that users could more
easily go to the faulty code.
   So I am looking for __FILE__/__LINE__ equivalents pointing to the
first non-system source file. Has any such request already be made ? Do
you think it would worth a request to gcc guys ?
François
More information about the Libstdc++
mailing list