Make Py_tracefunc an unsafe func
There's basically no way to safely write a function with raw pointers for parameters.
This commit is contained in:
parent
eafbbc5417
commit
c2faef4b64
|
@ -8,7 +8,7 @@ use std::os::raw::c_int;
|
|||
|
||||
// skipped _PyInterpreterState_GetMainModule
|
||||
|
||||
pub type Py_tracefunc = extern "C" fn(
|
||||
pub type Py_tracefunc = unsafe extern "C" fn(
|
||||
obj: *mut PyObject,
|
||||
frame: *mut PyFrameObject,
|
||||
what: c_int,
|
||||
|
|
Loading…
Reference in a new issue