Is it possible to ctypedef a function, as it is a common pattern in C++? Like
typedef int (*foo)(int, double, char*)
# Cython equivalent
ctypedef int (*foo)(int, double, char*)
Or at least to extern it without declaring it directly ? Something similiar to
# myheader.h
typedef int (*foo)(int, double, char*)
# mytest.pyx
extern int (*foo)
Yes that’s perfectly possible: