jethrogb / rust-cexpr

A C expression parser and evaluator
Apache License 2.0
45 stars 19 forks source link

Allow to distinguish wide strings from regular strings. #25

Open emilio opened 4 years ago

emilio commented 4 years ago
#define FOO L"bar"

Produces the same output as:

#define FOO "bar"

While they're different types. This causes bindgen to not generate the right thing for the former.

paxbun commented 1 year ago

I have a similar issue due to this. If you think it's okay, I want to make a PR that adds enum variants Char8, Char16, Char32, and WChar, which correspond to the u8, u, U, and L prefixes.