Use generated header file from Cython

后端 未结 2 540
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 13:45

According to the documentation it is possible to use C header files generated from Cython. I have followed the Hello World example with no problem and now I wan

2条回答
  •  青春惊慌失措
    2020-11-30 13:54

    You can use the api keyword

    cdef api void hello():
        print("hello")
        return;
    

    This will autogenerate a "hello.h" when compiling.

提交回复
热议问题