blob: fb1937166ebc2ddd46537adf2cb443ede63ca9ba (
plain)
1
2
3
4
5
6
7
8
9
|
cdef extern from *:
"""
/* This is C code which will be put
* in the .c file output by Cython */
static long square(long x) {return x * x;}
#define assign(x, y) ((x) = (y))
"""
long square(long x)
void assign(long& x, long y)
|