bytedeco / javacpp

The missing bridge between Java and native C++
Other
4.46k stars 581 forks source link

Add removeVariadic #682

Closed HGuillemet closed 1 year ago

HGuillemet commented 1 year ago

It may be convenient to map a C++ type to a Java variadic, like a long..., for method arguments, but then if a C++ function returns this type, the parser will generate illegal code.

This PR replaces the variadic with an array in returned type.