Skip to content

Splat operator does not work in @push_lua_struct #15

@raphasampaio

Description

@raphasampaio
mutable struct TestStruct end
@define_lua_struct TestStruct

function1(::TestStruct) = 1
@define_lua_function function1

function2(::TestStruct) = 2
@define_lua_function function2

function3(::TestStruct) = 3
@define_lua_function function3

L = LuaNova.new_state()
LuaNova.open_libs(L)

functions = ("function1", function1, "function2", function2, "function3", function3)
@push_lua_struct(L, TestStruct, functions...)

LuaNova.close(L)

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