From 58909d8ba499d51e0a7d9e6530d7fd3cb12d0767 Mon Sep 17 00:00:00 2001 From: Rainer Schuetze Date: Sun, 12 Mar 2023 11:35:56 +0100 Subject: [PATCH] fix build with older dmd --- tools/nostacktrace.d | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/nostacktrace.d b/tools/nostacktrace.d index d1bc8296..aa2745ec 100644 --- a/tools/nostacktrace.d +++ b/tools/nostacktrace.d @@ -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;