contextfree / winrt-rust

Use and (eventually) make Windows Runtime APIs with Rust
Apache License 2.0
142 stars 10 forks source link

Provide hstr! macro #45

Open Boddlnagg opened 6 years ago

Boddlnagg commented 6 years ago

Using the wstr crate for UTF16 literals, we can now provide a macro that enables HString literals without any heap allocation.

Fixes #30

Boddlnagg commented 6 years ago

We could also wait for more powerful const fn and implement it that way ... but using the wstr crate works on stable already ...