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

Single quote must be escaped otherwise ''' is generated instead of '\''. #249

Merged
merged 1 commit into from
Jul 10, 2021
Merged

Single quote must be escaped otherwise ''' is generated instead of '\''. #249

merged 1 commit into from
Jul 10, 2021

Conversation

ronaldvanmanen
Copy link
Contributor

@ronaldvanmanen ronaldvanmanen commented Jul 10, 2021

Single quote must be escaped otherwise ''' is generated instead of '\'' which results in a compiler error (e.g.: CS1011, C1012, etc.).

For example, the current version generates the following code for SDL_keycode.h:

public enum SDL_KeyCode
{
    SDLK_QUOTE = (byte)(''')
}

instead of

public enum SDL_KeyCode
{
    SDLK_QUOTE = (byte)('\'')
}

…'' which results in a compiler error (e.g.: CS1011, C1012, etc.).
@tannergooding tannergooding merged commit 298b73a into dotnet:main Jul 10, 2021
@tannergooding
Copy link
Member

Thanks for the contribution!

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