__FUNCTION__ __LINE__ __FILE__
2008-05-14 20:00
__FILE__ the filename
__LINE__ the line number
__FUNCTION__ the function name

u can use printf function diaplay it.


[venus@linux tmp]$ cat xx.c
main()
{
printf( "%d\n", __LINE__ );
printf( "%s\n", __FILE__ );
printf( "%s\n", __FUNCTION__ );
}


[venus@linux tmp]$ ./a.out
3
xx.c