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
)
12 printf("Var not specified\n");
17 printf("Val not specified\n");
20 if ( strcmp(var
, val
) != 0)
22 printf("Var (%s) and Val (%s) are not the same...\n", var
, val
);
25 #if !defined(TEST_DEFINED) || TEST_DEFINED != 123
26 printf("TEST_DEFINED is not defined to 123\n");
28 #elif defined(TEST_NOT_DEFINED)
29 printf("TEST_NOT_DEFINED is defined\n");