Lua.NET icon indicating copy to clipboard operation
Lua.NET copied to clipboard

Cannot get your examples to run

Open pfeigl opened this issue 3 months ago • 0 comments

Hi and thanks for these nice bindings. However I cannot get the examples to run:

The lua_pushcfunction(L, lfunc') call errors out with

'int pobnet.Test1.lfunc(lua_State)' is attributed with 'UnmanagedCallersOnly' and cannot be converted into a delegate type. Obtain a function pointer to this method.

When trying to provide the function as point using &lfunc I get

Argument type 'method group address' is not assignable to parameter type 'LuaNET.LuaJIT.Lua.lua_CFunction?'

What am I doing wrong? :-)

pfeigl avatar Oct 29 '25 19:10 pfeigl