97 points · by ingve · 8y ago · 6 comments
That said the only place where there's a little friction is around macros since they need to be evaluated in context. However it's easy to use another header to declare them as static const/discrete function and then bindgen picks them up just fine.
Bindgen has some support for C++ stuff too! Firefox uses it pretty heavily.