Function test_clock_register_default_handler

Source
#[no_mangle]
pub unsafe extern "C" fn test_clock_register_default_handler(
    clock: &mut TestClock_API,
    callback_ptr: *mut PyObject,
)
Expand description

Registers the default callback handler for TestClock.

§Safety

Assumes callback_ptr is a valid PyCallable pointer.

§Panics

Panics if the callback_ptr is null or represents the Python None object.