It seems the usage of template
package template DECLARE_HANDLE(string name, base = HANDLE) {
mixin ("alias " ~ base.stringof ~ " " ~ name ~ ";");
in druntime is superfluous but causes headaches for IDEs like IntelliJ as it cannot find the source of e.g. SC_HANDLE
which is defined as
mixin DECLARE_HANDLE!("SC_HANDLE");
As far as I understand the template can be removed and the handles can
be defined as e.g.
alias HANDLE SC_HANDLE;
See also
https://forum.dlang.org/post/[email protected]
Comment #1 by dlang-bot — 2024-01-14T21:13:02Z
@vabenil created dlang/dmd pull request #16038 "Fix issue 19702 - Remove usage of DECLARE_HANDLE" fixing this issue:
- Fix issue 19702 - Remove usage of DECLARE_HANDLE
Replace DECLARE_HANDLE in favor of aliases to avoid weird compilation
issues.
https://github.com/dlang/dmd/pull/16038
Comment #2 by dlang-bot — 2024-01-14T22:17:59Z
dlang/dmd pull request #16038 "Fix issue 19702 - Remove usage of DECLARE_HANDLE" was merged into master:
- 85cc0cad7920f3f93dd83a9a9ff47484d617a7b9 by vabenil:
Fix issue 19702 - Remove usage of DECLARE_HANDLE
Replace DECLARE_HANDLE in favor of aliases to avoid weird compilation
issues.
https://github.com/dlang/dmd/pull/16038