Output compiling info after #line preprocessor : Preprocessor LINE « Macro Preprocessor « C / ANSI-C






Output compiling info after #line preprocessor

#include <stdio.h>

int main(void)
{
#line 100 "myprog.c"
  printf("Compiling %s, line: %d, on %s, at %s",
           __FILE__, __LINE__, __DATE__, 
           __TIME__);

  return 0;
}


           
       








Related examples in the same category