/trunk/Examples/python/docstrings/example.i

# · Swig · 14 lines · 6 code · 4 blank · 4 comment · 0 complexity · bb05b2e34aec325f8d49a3b44810b38e MD5 · raw file

  1. /* File : example.i */
  2. %module example
  3. %{
  4. #include "example.h"
  5. %}
  6. /* %feature("docstring") has to come before the declaration of the method to
  7. * SWIG. */
  8. %feature("docstring") Foo::bar "No comment"
  9. /* Let's just grab the original header file here */
  10. %include "example.h"