Replies: 1 comment
-
Hi, @wjakob. Is this a bug? I encounter the similar problem and tried many ways to pass it, but failed. This is the definition: typedef void (*LLVMFatalErrorHandler)(const char *Reason);
void LLVMInstallFatalErrorHandler(LLVMFatalErrorHandler Handler); And binding code: m.def("install_fatal_error_handler", &LLVMInstallFatalErrorHandler, "handler"_a) The error:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a c struct that contains a function pointer.
This function pointer is a callback used internally by the c library. I would like the c library to be able to call a python function that I pass into this struct.
How do I write a python function into the c struct function pointer?
I have tried:
.def_rw("PO2SOconfigx", &some_structt::PO2SOconfigx)
Beta Was this translation helpful? Give feedback.
All reactions