Skip to content

Instantly share code, notes, and snippets.

@TethysSvensson
Created December 24, 2014 14:00
Show Gist options
  • Save TethysSvensson/59cf9f53b09f58227fd3 to your computer and use it in GitHub Desktop.
Save TethysSvensson/59cf9f53b09f58227fd3 to your computer and use it in GitHub Desktop.
pub type PyPtr = *mut PyObjectHead;
#[repr(C)]
pub struct PyRef(PyPtr);
extern "C" fn say_hello(selfval: PyPtr, args: PyPtr) -> PyPtr { ... }
extern "C" fn say_hello(selfval: PyRef, args: PyRef) -> PyRef { ... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment