Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalkuthe committed Jan 31, 2022
1 parent c73b10d commit 425bf6c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/types/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ fn ensure_datetime_api(_py: Python) -> &'static PyDateTime_CAPI {
}
}

/// Type Check macros
///
/// These are bindings around the C API typecheck macros, all of them return
/// `1` if True and `0` if False. In all type check macros, the argument (`op`)
/// must not be `NULL`. The implementations here all call ensure_datetime_api
/// to ensure that the PyDateTimeAPI is initalized before use
///
///
/// # Safety
///
/// These functions must only be called when the GIL is held!
// Type Check macros
//
// These are bindings around the C API typecheck macros, all of them return
// `1` if True and `0` if False. In all type check macros, the argument (`op`)
// must not be `NULL`. The implementations here all call ensure_datetime_api
// to ensure that the PyDateTimeAPI is initalized before use
//
//
// # Safety
//
// These functions must only be called when the GIL is held!

macro_rules! ffi_fun_with_autoinit {
($(#[$outer:meta] unsafe fn $name: ident($arg: ident: *mut PyObject) -> $ret: ty;)*) => {
Expand Down

0 comments on commit 425bf6c

Please sign in to comment.