Skip to content

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.

2 participants