blob: 86f45a9427eff88a1e22e51964299d77f0dcd86d [file] [log] [blame]
%module command_line_define
// Test handling of -D without a value specified.
#if FOO-0 != 1
# error "-DFOO didn't set FOO to 1"
#endif
// Test handling of -D with a value specified
#if BAR-0 != 123
# error "-DBAR=123 didn't set BAR to 123"
#endif
// Test handling of -U
#ifdef BAZ
# error "-UBAZ didn't undefine BAZ"
#endif
#ifdef NOTSET
# error "-UNOTSET resulted in NOTSET getting set!"
#endif