This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Alternative to __FILE__/__LINE__


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]