Skip to content

Commit c3995e1

Browse files
committed
Add Function, Method, Code and drop unnecessary BaseType
1 parent 3cab307 commit c3995e1

File tree

2 files changed

+277
-61
lines changed

2 files changed

+277
-61
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ pub const c = @cImport({
5151
// ...
5252
5353
pub const Tuple = extern struct {
54-
pub const BaseType = c.PyTupleObject;
55-
5654
// The underlying python structure
57-
impl: BaseType,
55+
impl: c.PyTupleObject,
5856
5957
// Import the object protocol
6058
pub usingnamespace ObjectProtocol(@This());
@@ -74,10 +72,8 @@ can get the name like this:
7472

7573
```zig
7674
pub const Type = extern struct {
77-
pub const BaseType = c.PyTypeObject;
78-
7975
// The underlying python structure
80-
impl: BaseType,
76+
impl: c.PyTypeObject,
8177
8278
// ...
8379
@@ -95,3 +91,8 @@ However it is generally recommended to use public C-API functions as is done wit
9591

9692
This is currently very alpha status and is undergoing breaking changes to functions but the
9793
basic design concept is unlikely to change.
94+
95+
96+
## Plans
97+
98+
Auto generate bindings...

0 commit comments

Comments
 (0)