Skip to content

Conversation

@LunarWarg
Copy link
Contributor

@LunarWarg LunarWarg commented Nov 28, 2025

Added callconv(.c) to the callback type; otherwise it would segfault when called. This also means the callback function in your code must be declared with callconv(.c). This fixes issue #45

Copy link
Member

@hazeycode hazeycode left a comment

Choose a reason for hiding this comment

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

Thanks!

@hazeycode hazeycode merged commit 7d3fb33 into zig-gamedev:main Nov 28, 2025
3 checks passed
@LunarWarg LunarWarg deleted the fix-InputTextCallback-segfault branch November 28, 2025 20:12
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