recover the %import(module=name) option,lost in previous fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7558 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d1663ed6ed
commit
30cf3657c6
2 changed files with 46 additions and 1 deletions
|
|
@ -12,6 +12,31 @@
|
|||
#include "imports_b.h"
|
||||
%}
|
||||
|
||||
%import(module="imports_a") "imports_a.i"
|
||||
|
||||
/*
|
||||
To import, you can use either
|
||||
|
||||
%import "imports_a.i"
|
||||
|
||||
or
|
||||
|
||||
%import(module="imports_a") "imports_a.h"
|
||||
|
||||
|
||||
In the first case, imports_a.i should declare the module name using
|
||||
the %module directive.
|
||||
|
||||
In the second case, the file could be either a .h file, where no
|
||||
%module directive will be found, or a swig interface file, where
|
||||
the module option will take priority over any %module directive
|
||||
inside the imported file.
|
||||
|
||||
*/
|
||||
|
||||
#if 0
|
||||
%import "imports_a.i"
|
||||
#else
|
||||
%import(module="imports_a") "imports_a.h"
|
||||
#endif
|
||||
|
||||
%include "imports_b.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue