diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-01-31 11:26:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-31 11:26:31 -0600 |
commit | 92b86c5ca3b5aa14e23a19578898e7f43168a2fc (patch) | |
tree | 4486129d711d4324a983bc1e0071d4b6b381c71a /bindgen-integration/cpp/Test.h | |
parent | ce7e69bfbc5a6e47eb1d9ee4f0b43a5afeef0f31 (diff) | |
parent | b33d329a764f9a254e5ccee025f9cf3f31322c97 (diff) |
Auto merge of #1243 - emilio:parse-callbacks, r=fitzgen
callbacks: Introduce MacroParsingBehavior to allow ignoring macros.
This is symmetric, yet less powerful, than enum_variant_behavior.
Fixes #687.
Diffstat (limited to 'bindgen-integration/cpp/Test.h')
-rw-r--r-- | bindgen-integration/cpp/Test.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bindgen-integration/cpp/Test.h b/bindgen-integration/cpp/Test.h index 323a9216..e09c9ee7 100644 --- a/bindgen-integration/cpp/Test.h +++ b/bindgen-integration/cpp/Test.h @@ -2,6 +2,12 @@ #define TESTMACRO +enum { + MY_ANNOYING_MACRO = +#define MY_ANNOYING_MACRO 1 + MY_ANNOYING_MACRO, +}; + class Test { int m_int; double m_double; |