Passing multiple parameters and allocating strings in C using Swig/Python

前端 未结 2 1384
温柔的废话
温柔的废话 2021-01-25 05:07

I am using SWIG to wrap the following C interface to access it from Python:

void some_method(char **output, int paramA, const char *paramB, int paramC);
<         


        
2条回答
  •  滥情空心
    2021-01-25 05:48

    Not a direct answer, but what you're working on sounds sufficiently low-level that you may want to consider forgoing SWIG and using the CPython api directly. SWIG is great, but it adds another dependency and loads of generated code.

提交回复
热议问题