| 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;
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.