Updated formatting of documentation plus a little reorganization.
[cmake.git] / Tests / StringFileTest / InputFile.h.in
blob3e70a36e86a5162a0420fdff067b2dd64ccb7015
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 /* This complicated line should be configured unchanged: */
9 static const char* configvar =
10 "@$@$junk =~ s/#$xyz#/$foo_bar{$wibble}->{$xyz}/;@@";
12 int CheckMethod(const char* var, const char* val )
14 if ( !var )
16 printf("Var not specified\n");
17 return 1;
19 if ( !val )
21 printf("Val not specified\n");
22 return 1;
24 if ( strcmp(var, val) != 0)
26 printf("Var (%s) and Val (%s) are not the same...\n", var, val);
27 return 1;
29 #if !defined(TEST_DEFINED) || TEST_DEFINED != 123
30 printf("TEST_DEFINED is not defined to 123\n");
31 return 1;
32 #elif defined(TEST_NOT_DEFINED)
33 printf("TEST_NOT_DEFINED is defined\n");
34 return 1;
35 #else
36 return 0;
37 #endif