fw4spl
CheckFunctionExists.c
1 #ifdef CHECK_FUNCTION_EXISTS
2 
3 #ifdef __cplusplus
4 extern "C"
5 #endif
6 char CHECK_FUNCTION_EXISTS();
7 #ifdef __CLASSIC_C__
8 int main(){
9  int ac;
10  char*av[];
11 #else
12 int main(int ac, char*av[]){
13 #endif
14  CHECK_FUNCTION_EXISTS();
15  if(ac > 1000)
16  {
17  return *av[0];
18  }
19  return 0;
20 }
21 
22 #else /* CHECK_FUNCTION_EXISTS */
23 
24 # error "CHECK_FUNCTION_EXISTS has to specify the function"
25 
26 #endif /* CHECK_FUNCTION_EXISTS */