Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/core/demangle.d
Original file line number Diff line number Diff line change
Expand Up @@ -1862,19 +1862,19 @@ unittest

private template isExternD(FT) if (is(FT == function))
{
enum isExternD = FT.mangleof[0] == 'F';
enum isExternD = __traits(getLinkage, FT) == "D";
}

private template isExternCPP(FT) if (is(FT == function))
{
enum isExternCPP = FT.mangleof[0] == 'R';
enum isExternCPP = __traits(getLinkage, FT) == "C++";
}

private template hasPlainMangling(FT) if (is(FT == function))
{
enum c = FT.mangleof[0];
enum lnk = __traits(getLinkage, FT);
// C || Pascal || Windows
enum hasPlainMangling = c == 'U' || c == 'V' || c == 'W';
enum hasPlainMangling = lnk == "C" || lnk == "Pascal" || lnk == "Windows";
}

unittest
Expand Down