getting Filename and row?

Started by
2 comments, last by FxMazter 20 years, 3 months ago
Hey, while sitting here and making my Exeption handler I was thinking that it would be nice to throw the filename and the row where the code is running from. (I mean the .cpp file, not the .exe ^^) I am using VC++ .NET 2003. I was hoping that there would be some neat defines or something like that so that the compiler automatically gives you the filename and the row in that file? thanks! [edited by - FxMazter on January 4, 2004 7:08:29 PM]
Advertisement
__FILE__ and __LINE__ are probably what you''re looking for
thank you
You might want to browse the contents of your assert.h file to see how the assert() macro does things.

This topic is closed to new replies.

Advertisement