9 releases
| 0.2.2 | Mar 20, 2023 |
|---|---|
| 0.2.1 | Mar 20, 2023 |
| 0.1.5 | Mar 19, 2023 |
| 0.1.2 | Dec 8, 2022 |
#337 in FFI
305 downloads per month
180KB
5K
SLoC
A library for parsing C macros.
This crate allows parsing C macros and converting them to Rust code.
Both function-like macros (e.g. #define FUNC(a, b, c) a + b * c) as well
as variable-like macros (e.g. #define VAR 4 + 7 * 82) are supported.
cmacro
This is a library for parsing C macros and converting them to Rust functions or macros.
Dependencies
~2.5MB
~57K SLoC