mystor / rust-cpp

Embed C++ directly inside your rust code!
Apache License 2.0
802 stars 44 forks source link

Allow the use of the cpp! and cpp_class! macro within other macro #35

Closed ogoffart closed 6 years ago

ogoffart commented 6 years ago

The cpp! and cpp_class! macro still need to be verbatim in the source code, and cannot be generated by the macro_rules. But if they are present as it within other macro, cpp_build will now generate the code for them.

https://github.com/mystor/rust-cpp/issues/19

ogoffart commented 6 years ago

Thanks for the review. (I ran rustfmt and fixed up the change lines.)