Preprocessor: line : error « Development « C / ANSI-C






Preprocessor: line

#include <stdio.h>

int main(void)
{
  int i;

/* reset line number to 1000 and file name to myprog.c
*/
#line 1000 "myprog.c"
#error Check the line number and file name.

  return 0;
}


           
       








Related examples in the same category

1. Print error message: how to use perror
2.Reset error indicators: writing errors
3. Get pointer to error message string: how to use strerror
4.Define Macro for string variable
5.Preprocessor: error