#include<stdio.h>
#define Log(fmt,...) printf("%s/%d::"fmt"\r\n",__FILE__,__LINE__,##__VA_ARGS__)
#define while_safe(bExp) int cnt = 20; while(bExp && (--cnt >0) ? 1 : (Log("dead loop"),0))
int main(){ while_safe(1){ Log("test"); } return 0; }