Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ucs2_cstr! macro #21

Merged
merged 2 commits into from
Apr 2, 2024
Merged

Add ucs2_cstr! macro #21

merged 2 commits into from
Apr 2, 2024

Conversation

nicholasbishop
Copy link
Contributor

This allows UCS-2 strings to be easily created at compile time. This is not a proc macro, so there are no additional dependencies needed.

This function is extracted from `encode_with`, with some modifications
to allow it to be a `const fn`. This will be used to implement a macro
for creating const UCS-2 strings.
Copy link
Contributor

@phip1611 phip1611 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice!

@phip1611 phip1611 merged commit ae83044 into main Apr 2, 2024
4 checks passed
@phip1611 phip1611 deleted the bishop-macro branch April 2, 2024 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants