fix emscripten callback function return type in examples by TristanJet · Pull Request #344 · raylib-zig/raylib-zig · GitHub
Skip to content

fix emscripten callback function return type in examples - #344

Open
TristanJet wants to merge 1 commit into
raylib-zig:develfrom
TristanJet:devel
Open

TristanJet wants to merge 1 commit into
raylib-zig:develfrom
TristanJet:devel

Conversation

@TristanJet

@TristanJet TristanJet commented Jun 18, 2026 •

Copy link
Copy Markdown

The core/basic_window_web.zig example is wrong. The callback function provided must return a C type in order to have the right signature at runtime. The ptrcast won't work.

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.

1 participant