Skip to content

Fix #17203 - mark core.sys.windows.dbghelp functions @nogc nothrow - #23788

Open
usefahmed07 wants to merge 3 commits into
dlang:masterfrom
usefahmed07:fix-dbghelp-nogc-nothrow-17203
Open

Fix #17203 - mark core.sys.windows.dbghelp functions @nogc nothrow#23788
usefahmed07 wants to merge 3 commits into
dlang:masterfrom
usefahmed07:fix-dbghelp-nogc-nothrow-17203

Conversation

@usefahmed07

Copy link
Copy Markdown
Contributor

Fixes #17203

Marks the extern(Windows) function alias block in core.sys.windows.dbghelp as @nogc nothrow, since these are Win32 API functions that neither allocate GC memory nor throw exceptions.

@usefahmed07

Copy link
Copy Markdown
Contributor Author

@thewilsonator Marked the actual API functions @nogc nothrow, left the callback parameter types untouched so user callbacks aren't forced into it.

@rainers

rainers commented Sep 5, 2026

Copy link
Copy Markdown
Member

As most of these function might call the PSYMBOL_REGISTERED_CALLBACK registered via SymRegisterCallback, there is actually no guarantee that these are @nogc. Not sure how pedantic we should be here, though.

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.

Functions in core.sys.windows.dbghelp should be marked @nogc nothrow

2 participants