Repository navigation
'callback param N': a callback with no userdata; a retained one states its thread; the drafter writes it where the body only calls the pointer (#3178) - #3435
Merged
Conversation
added 4 commits
November 18, 2026 11:52
ehartford
marked this pull request as ready for review
November 18, 2026 20:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3178. Eric approved landing all of it, with the spec words, on 2026-11-18.
callback param Ndescribes a callback with no userdata parameter: the argument is a function or a closure that captures nothing. A capturing closure is refused as before.callback_thread anyorcallback_thread registering; without it the clause is an error with that fix-it.ci_param_only_called). Stored, passed on or copied to a local: raw, with a report line that names the clause. With avoid *beside it the drafter writes nothing; the userdata pairing is stated, never drawn.extern "C"callback ends the single-thread proof for globals. That was applied only for a declared-only C function; a callback handed to a function the header defines (static inline) was not counted. Both count now.Tests: six behaviour and compile-error tests, one drafter test over six shapes. Battery green on the stack's top (2be269f);
:release-checksgreen.