Skip to content

Cannot get your examples to run #31

Description

@pfeigl

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? :-)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions