Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Modules / CheckVariableExists.c
blob752f6e486b76502c77744943ed2585b4b8ad4d07
1 #ifdef CHECK_VARIABLE_EXISTS
3 extern int CHECK_VARIABLE_EXISTS;
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;
16 #else /* CHECK_VARIABLE_EXISTS */
18 # error "CHECK_VARIABLE_EXISTS has to specify the variable"
20 #endif /* CHECK_VARIABLE_EXISTS */