enhance the generate-wrapper-api macro to handle variadic methods