On Tuesday, 2 August 2016 at 16:44:39 UTC, Mike Parker wrote:
On Tuesday, 2 August 2016 at 14:23:55 UTC, Jack wrote:
[...]

lua_register takes function pointers that in the form of lua_CFunction, an alias you can find declared in derelict.lua.types [1]. As you'll see there, it is declared to be both extern(C) and nothrow. Make your button function nothrow an you should be good to go.

[1] https://github.com/DerelictOrg/DerelictLua/blob/master/source/derelict/lua/types.d#L103

Thank you!

Reply via email to