mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +00:00
Update bindings.md
This commit is contained in:
parent
9e66bab34b
commit
295bef6d55
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user