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
)
16 printf("Var not specified\n");
21 printf("Val not specified\n");
24 if ( strcmp(var
, val
) != 0)
26 printf("Var (%s) and Val (%s) are not the same...\n", var
, val
);
29 #if !defined(TEST_DEFINED) || TEST_DEFINED != 123
30 printf("TEST_DEFINED is not defined to 123\n");
32 #elif defined(TEST_NOT_DEFINED)
33 printf("TEST_NOT_DEFINED is defined\n");