Return header of a vectorcall wrapper function. See comment above for a summary of the arguments.
(fn: FuncIR, names: NameGenerator)
| 57 | |
| 58 | |
| 59 | def wrapper_function_header(fn: FuncIR, names: NameGenerator) -> str: |
| 60 | """Return header of a vectorcall wrapper function. |
| 61 | |
| 62 | See comment above for a summary of the arguments. |
| 63 | """ |
| 64 | assert not fn.internal |
| 65 | return ( |
| 66 | "PyObject *{prefix}{name}(" |
| 67 | "PyObject *self, PyObject *const *args, size_t nargs, PyObject *kwnames)" |
| 68 | ).format(prefix=PREFIX, name=fn.cname(names)) |
| 69 | |
| 70 | |
| 71 | def generate_traceback_code( |
no test coverage detected
searching dependent graphs…