Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

For the intXX_t types, you can do something like the following:

%cython

cdef extern from "inttypes.h":
    ctypedef int int64_t  

def foo():
    cdef int64_t num = 10
    printf("num = %d\n", num)

If you look at the generated C code, you'll see something like this is generated:

#include "inttypes.h"
...
int64_t __pyx_v_num;
...
__pyx_v_num = 10;