diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-01-30 23:56:49 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-01-31 00:00:57 +0100 |
commit | b33d329a764f9a254e5ccee025f9cf3f31322c97 (patch) | |
tree | a01dcbac8a080c4c74cd4f473af0ffcefe722eae /bindgen-integration/cpp/Test.h | |
parent | 34b92160a7f6e65294a7b892fa46701d22c147ea (diff) |
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 4ab8373e..d128a0e0 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; |