~ubuntu-branches/ubuntu/maverick/swig1.3/maverick

« back to all changes in this revision

Viewing changes to Examples/test-suite/imports_b.i

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#include "imports_b.h" 
13
13
%} 
14
14
 
15
 
%import "imports_a.i" 
 
15
 
 
16
/* 
 
17
   To import, you can use either
 
18
   
 
19
     %import "imports_a.i"
 
20
 
 
21
   or
 
22
 
 
23
     %import(module="imports_a") "imports_a.h" 
 
24
 
 
25
 
 
26
   In the first case, imports_a.i should declare the module name using
 
27
   the %module directive.
 
28
 
 
29
   In the second case, the file could be either a .h file, where no
 
30
   %module directive will be found, or a swig interface file, where
 
31
   the module option will take priority over any %module directive
 
32
   inside the imported file.
 
33
 
 
34
*/
 
35
 
 
36
#if 0
 
37
%import "imports_a.i"
 
38
#else
 
39
%import(module="imports_a") "imports_a.h" 
 
40
#endif
16
41
 
17
42
%include "imports_b.h"