| 2973 | |
| 2974 | template<auto memFn> |
| 2975 | constexpr auto method(const char* name) const |
| 2976 | { |
| 2977 | constexpr auto fn = []() { |
| 2978 | if constexpr (detail::IsPObject<Ty>::value) return detail::compose<&Ty::value, memFn>; |
| 2979 | else return memFn; |
| 2980 | }(); |
| 2981 | auto ret = TypeDefinition<Ty, BaseTy, defs..., methodDef<fn, METH_VARARGS | METH_KEYWORDS>>{ |
| 2982 | typeName, typeNameInModule, typeFlags, |
| 2983 | methodNames, propertyNames, slots |
| 2984 | }; |
| 2985 | ret.methodNames.emplace_back(name); |
| 2986 | return ret; |
| 2987 | } |
| 2988 | |
| 2989 | template<auto memFn> |
| 2990 | constexpr auto staticMethod(const char* name) const |
nothing calls this directly
no test coverage detected