summaryrefslogtreecommitdiff
path: root/src/codegen/mod.rs
diff options
context:
space:
mode:
authorJon Gjengset <jon@thesquareplanet.com>2019-11-14 08:02:21 -0500
committerEmilio Cobos Álvarez <emilio@crisal.io>2019-11-14 15:10:05 +0100
commitf27fe97089b5c124dae4afbbbfeb66a3b44579d5 (patch)
treed7ede300653634cb6fe99b05fbd2408cdbfbe04e /src/codegen/mod.rs
parent8d85c3b2cfa55b16b28cd72a4e8fa6cff387b68d (diff)
Warn rather than panic on unknown namespace prefix
When a #defined token was used before a namespace, like so (#1676): #define nssv_inline_ns inline nssv_inline_ns namespace literals {} bindgen would crash when encountering the unknown token preceding the namespace token. This is because we don't get to see "past" the ifdef to the underlying token. The true fix to this is to find a way to extract ifdef info through clang, but for the time being we simply change the panic into a warning when such a token is encountered, and then proceed as if it were empty. Fixes #1676.
Diffstat (limited to 'src/codegen/mod.rs')
0 files changed, 0 insertions, 0 deletions