fw4spl
CheckVariableExists.c
1 #ifdef CHECK_VARIABLE_EXISTS
2 
3 extern int CHECK_VARIABLE_EXISTS;
4 
5 #ifdef __CLASSIC_C__
6 int main(){
7  int ac;
8  char*av[];
9 #else
10 int main(int ac, char*av[]){
11 #endif
12  if(ac > 1000){return *av[0];}
13  return CHECK_VARIABLE_EXISTS;
14 }
15 
16 #else /* CHECK_VARIABLE_EXISTS */
17 
18 # error "CHECK_VARIABLE_EXISTS has to specify the variable"
19 
20 #endif /* CHECK_VARIABLE_EXISTS */