Skip to content

Ability to get calling function from Lua #607

Closed
@marrub--

Description

@marrub--

Lua has the ability to get the calling function using lua_getinfo, which is actually used here but there's no way to get this info from mlua's API. This can be used for a multitude of things including getting the environment of the running function, so it is quite a desirable feature (and unfortunately has blocked me from making a function that I needed.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions