Skip to content

Commit

Permalink
Fix #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Bradley Chatha authored Jul 29, 2022
1 parent 3f53dbf commit 1c12bb3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/lumars/state.d
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,6 @@ 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);
Expand Down Expand Up @@ -886,4 +885,4 @@ unittest

state.doString(code, _G1);
state.doString(code, _G2);
}
}

0 comments on commit 1c12bb3

Please sign in to comment.