To keep compatibility with CPython, we need to generate a trampoline for each method which uses one of HPy calling conventions, e.g.:
HPy_DEF_METH_VARARGS(add_ints)
static HPy add_ints_impl(HPyContext ctx, HPy self, HPy *args, HPy_ssize_t nargs);
After this, add_ints
is a function of type HPyMeth
(which is different in
the CPython and the Universal cases), and can be put inside an