Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Nov 13, 2024

I found this pretty useful during debugging recently.

I found this pretty useful during debugging recently.
}
var size = lengthBytesUTF8(name) + 1;
SDL.keyName = _realloc(SDL.keyName, size);
stringToUTF8(name, SDL.keyName, size);
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add keyName: 0 to the SDL class for closure? Though if it doesn't error, maybe it doesn't matter.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I tend to do that kind of thing if (and only if) closure complains.

@sbc100 sbc100 enabled auto-merge (squash) November 13, 2024 23:02
@sbc100 sbc100 merged commit 655011f into emscripten-core:main Nov 13, 2024
28 checks passed
@sbc100 sbc100 deleted the SDL_GetKeyName branch November 13, 2024 23:54
uysalibov pushed a commit to uysalibov/emscripten that referenced this pull request Nov 15, 2024
I found this pretty useful during debugging recently.
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