grasph / wrapit

Automatization of C++--Julia wrapper generation
MIT License
101 stars 13 forks source link

missing type definition with array of pointers #22

Closed t-bltg closed 1 year ago

t-bltg commented 1 year ago

Consider the following mwe:

foo.hpp

void func1(int argc, char const **argv)
{
    return;
}

void func2(int argc, char const *argv[])
{
    return;
}

, with the following configuration file:

conf.toml

module_name = "FOO"

input = ["foo.hpp"]

Running: $ wrapit -v 2 --force conf.toml results in the following truncated log:

...
Info: missing definition of type const char *[] to define wrapper for void func2(int, const char *[])
...

Is it a limitation (it's working in the pointer to pointer case), and how can I fix this ?