[Derelict-Lua] compiler error when lua_register is called

Jack via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 2 18:56:19 PDT 2016


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!


More information about the Digitalmars-d-learn mailing list