使用__FILE__和__LINE__定位错误

#include <stdio.h>

int main()
{
    printf("this fake error is in %s on line %d
", __FILE__, __LINE__);
    return 0;
}
原文地址:https://www.cnblogs.com/zzyoucan/p/6502784.html