This is consistent with C/C++ compiler preprocessors. Previously SWIG set FOO to an empty value. Fixes #2193
7 lines
138 B
OpenEdge ABL
7 lines
138 B
OpenEdge ABL
%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
|