STYLE: Nightly Version update
[cmake.git] / Tests / StringFileTest / InputFile.h.in
blobc7c19955312140fb8a4d38b5466bf32e4e1d5014
1 #include "includefile"
3 /* This should be configured to a define. */
4 #cmakedefine TEST_DEFINED @TEST_DEFINED@
5 /* This should be configured to a commented undef with the curlies in place */
6 #cmakedefine TEST_NOT_DEFINED ${TEST_NOT_DEFINED}
8 int CheckMethod(const char* var, const char* val )
10 if ( !var )
12 printf("Var not specified\n");
13 return 1;
15 if ( !val )
17 printf("Val not specified\n");
18 return 1;
20 if ( strcmp(var, val) != 0)
22 printf("Var (%s) and Val (%s) are not the same...\n", var, val);
23 return 1;
25 #if !defined(TEST_DEFINED) || TEST_DEFINED != 123
26 printf("TEST_DEFINED is not defined to 123\n");
27 return 1;
28 #elif defined(TEST_NOT_DEFINED)
29 printf("TEST_NOT_DEFINED is defined\n");
30 return 1;
31 #else
32 return 0;
33 #endif