C

#include <stdio.h>

int main()
{
    printf("file:%s\n", __FILE__);
    printf("date:%s\n", __DATE__); 
           printf("time:%s\n", __TIME__);
    printf("line:%d\n", __LINE__);
           printf("function:%s\n", __FUNCTION__);
           printf("func:%s\n", __func__);
           return 0;
}
原文地址:https://www.cnblogs.com/wouldguan/p/2754343.html