Browse Source

Update bindings.md

blueloveTH 2 years ago
parent
commit
295bef6d55
1 changed files with 2 additions and 1 deletions
  1. 2 1
      docs/bindings.md

+ 2 - 1
docs/bindings.md

@@ -148,7 +148,8 @@ struct wrapped__Point{
     }
     }
 
 
     static void _register(VM* vm, PyObject* mod, PyObject* type){
     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)
         PY_STRUCT_LIKE(wrapped__Point)
 
 
         // wrap field x
         // wrap field x