Skip to content

Commit 2e08fe3

Browse files
stub PyType_GetSlot
1 parent b6692c2 commit 2e08fe3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎crates/capi/src/object/pytype.rs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ pub unsafe extern "C" fn PyType_GetFullyQualifiedName(ptr: *mut PyTypeObject) ->
102102
})
103103
}
104104

105+
#[unsafe(no_mangle)]
106+
pub unsafe extern "C" fn PyType_GetSlot(_ty: *const PyTypeObject, _slot: c_int) -> *mut c_void {
107+
core::ptr::null_mut()
108+
}
109+
105110
#[unsafe(no_mangle)]
106111
pub extern "C" fn PyType_FromSlots(slots: *const PySlot) -> *mut PyObject {
107112
with_vm(|vm| {

0 commit comments

Comments
 (0)