Skip to content

LuaDll.luaL_register should add the null entry to the input array #1

Description

@kokuda

The native C luaL_register expects that the last entry in the array of luaL_Reg objets to contain a null name and func.

Instead of relying on the caller to do this, LuaDll.luaL_register should ensure that the last entry is null and, if not, ether copy the array into one that does contain a null final entry OR append the entry to it so the caller doesn't have to remember that step.

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