diff --git a/include/pocketpy/bindings.h b/include/pocketpy/bindings.h index 3a3d7aba..2f3022e7 100644 --- a/include/pocketpy/bindings.h +++ b/include/pocketpy/bindings.h @@ -114,6 +114,16 @@ PyObject* VM::bind_field(PyObject* obj, const char* name, F T::*field){ obj->attr().set(StrName(name_sv), prop); return prop; } + +template +[[deprecated]] void _bind(VM* vm, PyObject* obj, const char* sig, Ret(*func)(Params...)){ + return vm->bind(obj, sig, func); +} + +template +[[deprecated]] void _bind(VM* vm, PyObject* obj, const char* sig, Ret(T::*func)(Params...)){ + return vm->bind(obj, sig, func); +} /*****************************************************************/ #define PY_FIELD(T, NAME, EXPR) \ vm->bind_property(type, NAME, \