mirror of https://github.com/swig/swig
Fix module example so generated code compiles
Fixes https://sourceforge.net/p/swig/bugs/1141/
This commit is contained in:
parent
8f9a432040
commit
a6eae77dd5
|
@ -119,6 +119,10 @@ public:
|
|||
// File: derived_module.i
|
||||
%module derived_module
|
||||
|
||||
%{
|
||||
#include "base.h"
|
||||
%}
|
||||
|
||||
%import "base_module.i"
|
||||
|
||||
%inline %{
|
||||
|
@ -156,6 +160,10 @@ The <tt>derived_module.i</tt> file shown above could be replaced with the follow
|
|||
// File: derived_module.i
|
||||
%module derived_module
|
||||
|
||||
%{
|
||||
#include "base.h"
|
||||
%}
|
||||
|
||||
%import(module="base_module") "base.h"
|
||||
|
||||
%inline %{
|
||||
|
|
Loading…
Reference in New Issue