On Fri, Feb 11, 2022 at 02:50:06PM -0800, Andrii Nakryiko wrote: > } \n\ > \n\ > - #endif /* %s */ \n\ > + #ifdef __cplusplus \n\ > + struct %1$s *%1$s::open() { return %1$s__open(); } \n\ > + struct %1$s *%1$s::open(const struct bpf_object_open_opts *opts) { return %1$s__open_opts(opts); }\n\ Why two methods? instead of "opts = nullptr" ?