Possible Duplicate:
C/C++ line number
Hi,
I have a simple error manager class that other classes use to report errors which are then printed out to a log file for later examination. I can print out the description and give it error codes. What I would also like, is for it to record the file name and line number where the error was recorded (automatically, rather than me writing it every time). Any way to do that? I know it come be done because I have seen it, I just can't find the solution - probably due to incorrect search terms.
Thanks!