EnderUNIX tipsMail to My Friend , Home Page
[ C/C++ ]
"Getting source file name and line number" - Baris Simsek - (2006-06-04 21:22:58) 
You may see some error outputs like following:
chan_ss7.c:765 makes asterisk crash
The output shows the source file name and the line number which cause the error.
You can use __LINE__ as an integer and __FILE__ as a char *.
__FILE__ is replaced (during compilation) with the name of the file containing the code (as a string).
__LINE__ is replaced (during compilation) with the current line number (as an integer constant).
Mail to My Friend , Home Page