From b4923644d883facd72e568991ae7c2b7aef24dad Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 2 May 2024 12:37:34 +0800 Subject: [PATCH] Update bindings.md --- docs/bindings.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/bindings.md b/docs/bindings.md index b2912d15..b68f0958 100644 --- a/docs/bindings.md +++ b/docs/bindings.md @@ -148,10 +148,6 @@ struct wrapped__Point{ } static void _register(VM* vm, PyObject* mod, PyObject* type){ - // enable default constructor and struct-like methods - // if you don't use this, you must bind a `__new__` method as constructor - PY_STRUCT_LIKE(wrapped__Point) - // wrap field x PY_FIELD(wrapped__Point, "x", _, x) // wrap field y @@ -172,7 +168,7 @@ struct wrapped__Point{ int main(){ VM* vm = new VM(); - // register the wrapper class somewhere + // register the wrapper class in builtins wrapped__Point::register_class(vm, vm->builtins); // use the Point class