From 295bef6d55bf4d6f378b2eaa0b49946b354ae1db Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 2 Dec 2023 00:06:05 +0800 Subject: [PATCH] Update bindings.md --- docs/bindings.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/bindings.md b/docs/bindings.md index 6eeac613..3363b791 100644 --- a/docs/bindings.md +++ b/docs/bindings.md @@ -148,7 +148,8 @@ struct wrapped__Point{ } static void _register(VM* vm, PyObject* mod, PyObject* type){ - // optional macro to enable struct-like methods + // 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