passing opaque pointers #11
Answered
by
wjakob
bmahlbrand
asked this question in
Q&A
|
I want to accomplish something like the following: where ctx is some opaque struct pointer that python needs not be aware of (not accessing private members or anything) using the following compiles fine, but complains when thus crashes with the error - I looked at Thanks! |
Answered by
wjakob
Mar 25, 2022
Replies: 1 comment 1 reply
|
You need a |
1 reply
Answer selected by
bmahlbrand
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need a
nb::class_declaration forcontext_state_struct. No need to provide a constructor/method/fields.