Skip to content

Array as function argument #33

@davispuh

Description

@davispuh

When I've callback defined as

#define COUNT 10
void (*cl)(int list[COUNT]);

swig produces

<attribute name="decl" value="f(a(COUNT).int)." id="19616" addr="0xbf61b8" />

and it appears

callback([ a(COUNT).int ], :void)

but it probably should be

callback([ [:int, 10] ], :void)

only that's not supported yet, see ffi/ffi#385

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