From d540af3043f5261d8f2b7b089df2c5aae523c03c Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 4 Oct 2023 14:37:32 +0800 Subject: [PATCH] ... --- docs/bindings.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/docs/bindings.md b/docs/bindings.md index 74c6a45b..33968d5c 100644 --- a/docs/bindings.md +++ b/docs/bindings.md @@ -49,10 +49,6 @@ vm->bind(obj, }); ``` -!!! -Other documents are working in progress. -!!! - ### Bind a struct Assume you have a struct `Point` declared as follows. @@ -113,7 +109,7 @@ struct wrapped__Point{ wrapped__Point& self = _py_cast(vm, args[0]); self.value.x = py_cast(vm, args[1]); self.value.y = py_cast(vm, args[2]); - return vm->None + return vm->None; }); // other custom methods @@ -162,6 +158,6 @@ This specialized binding function has optimizations and result in better perform For example, `vm->bind__add__` is preferred over `vm->bind_method<1>(type, "__add__", ...)`. -#### Further reading +### Further reading -See [linalg.h](https://github.com/blueloveTH/pocketpy/blob/main/src/linalg.h) for the complete implementation. \ No newline at end of file +See [linalg.h](https://github.com/blueloveTH/pocketpy/blob/main/src/linalg.h) for a complete example used by `linalg` module. \ No newline at end of file