From 033770a6c6c23cdec842a2c31716664d951e534c Mon Sep 17 00:00:00 2001 From: Elias Batek Date: Fri, 24 May 2024 04:45:48 +0200 Subject: [PATCH] Turn clumsy `static assert` into a `pragma(msg)` --- pixmappaint.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixmappaint.d b/pixmappaint.d index e5ed2f1..42994e4 100644 --- a/pixmappaint.d +++ b/pixmappaint.d @@ -442,7 +442,7 @@ in (source.length == target.length) { } else { // better error message in case it’s not implemented static if (!is(typeof(blendPixel!mode))) { - static assert(false, "Missing `blendPixel!(" ~ mode.stringof ~ ")`."); + pragma(msg, "Hint: Missing or bad `blendPixel!(" ~ mode.stringof ~ ")`."); } foreach (immutable idx, ref pxTarget; target) {