From 12c5c7cf3bc1272db3e67865b23a3ccbff0c699a Mon Sep 17 00:00:00 2001 From: Bradley Chatha Date: Tue, 17 May 2022 00:17:29 +0100 Subject: [PATCH] Disable delegate support under LDC --- source/lumars/state.d | 1 + 1 file changed, 1 insertion(+) diff --git a/source/lumars/state.d b/source/lumars/state.d index 45e7a4a..ee54583 100644 --- a/source/lumars/state.d +++ b/source/lumars/state.d @@ -511,6 +511,7 @@ struct LuaState lua_pushcfunction(this.handle, value); else static if(isDelegate!T) { + version(LDC) static assert(false, "For some reason, delegate support under LDC crashes. See issue: https://github.com/BradleyChatha/lumars/issues/10"); // @suppress(dscanner.style.long_line) lua_pushlightuserdata(this.handle, value.ptr); lua_pushlightuserdata(this.handle, value.funcptr); lua_pushcclosure(this.handle, &luaCWrapperSmart!(T, LuaFuncWrapperType.isDelegate), 2);