Suppose I have a C++ header fun.hpp:
//existing description of what fun1 does
void fun1(int x);
//existing description of what fun2 does
void fun2(int x);
I want to generate a SWIG wrapper so that the comments will appear in the target language with:
- in a separate HTML document
- embedded in the target generated wrapper code
Any ideas?
%javamethodmodifiersand some limited docstring support for Python.// @default(10) @format(%d)can be used to hint code generation. But currently the swig parse tree does not have the comments.