clarax-ffi 1.0.1

CPython 3.11+ C-API bindings for the ClaraX ecosystem
Documentation
1
2
3
4
5
6
7
8
9
use libc::size_t;
use std::ffi::c_void;

extern_libpython! {
    pub fn PyMem_Malloc(size: size_t) -> *mut c_void;
    pub fn PyMem_Calloc(nelem: size_t, elsize: size_t) -> *mut c_void;
    pub fn PyMem_Realloc(ptr: *mut c_void, new_size: size_t) -> *mut c_void;
    pub fn PyMem_Free(ptr: *mut c_void);
}