Skip to content

Commit

Permalink
fix build with older dmd
Browse files Browse the repository at this point in the history
  • Loading branch information
rainers committed Mar 12, 2023
1 parent 5bf0733 commit 58909d8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tools/nostacktrace.d
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ import core.sys.windows.windows;
class StackTrace : Throwable.TraceInfo
{
public:
this(size_t skip, CONTEXT* context) @nogc
{
}
static if (__VERSION__ < 2102)
this(size_t skip, CONTEXT* context)
{
}
else
this(size_t skip, CONTEXT* context) @nogc
{
}

int opApply(scope int delegate(ref const(char[])) dg) const
{
return 0;
Expand Down

0 comments on commit 58909d8

Please sign in to comment.