MCPcopy Create free account
hub / github.com/pybind/pybind11 / append_self_arg_if_needed

Function append_self_arg_if_needed

include/pybind11/attr.h:492–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492inline void append_self_arg_if_needed(function_record *r) {
493 if (r->is_method && r->args.empty()) {
494 r->args.emplace_back("self", nullptr, handle(), /*convert=*/true, /*none=*/false);
495 }
496}
497
498/// Process a keyword argument attribute (*without* a default value)
499template <>

Callers 3

initMethod · 0.85
initMethod · 0.85
initMethod · 0.85

Calls 3

emplace_backMethod · 0.80
handleFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected