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

Prefixed string literals #357

Closed
KristofferC opened this issue Dec 14, 2021 · 1 comment
Closed

Prefixed string literals #357

KristofferC opened this issue Dec 14, 2021 · 1 comment
Labels

Comments

@KristofferC
Copy link
Contributor

Prefixed string literals will right now emit the prefix as is:

#define S L"string"

emits

const S = L"string"

leading to an error when the file is included since no L-string macro is defined.

Perhaps the prefix can just be removed, alt a no-op L-string macro can be defined since the cconvert from the type signatures should take care of it (albeit with a copy for String -> Cwstring).

@Gnimuc Gnimuc added the macro label Dec 15, 2021
@Gnimuc
Copy link
Member

Gnimuc commented Dec 15, 2021

The hard part is that libclang doesn't expose enough APIs for identifying the L-string macros.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants