In SWIG, what is the difference between the "%include" directive, and the standard C "#include"?

For instance, in all the tutorials, why do they typically look something like this:

%module my_module

%{
#include "MyHeader.h"
%}

%include "MyHeader.h"

This seems redundant to me. Perhaps somebody with knowledge can clarify.

Is there a preferred method for including C++ code?

Edit
Report