fork download
  1. #include <stdio.h>
  2.  
  3. #define LOG(format, ...) \
  4. printf("%s(%d) : %s() " format, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__)
  5.  
  6. int main()
  7. {
  8. LOG("\n");
  9. LOG("%d\n", 123);
  10. LOG("'%s %d'\n", "Some useful message", 456);
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
prog.c(8) : main() 
prog.c(9) : main() 123
prog.c(10) : main() 'Some useful message 456'