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

« back to all changes in this revision

Viewing changes to Examples/test-suite/director_basic.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:
28
28
%}
29
29
%feature("director");
30
30
 
31
 
#ifdef SWIGJAVA
32
 
%typemap(directordisconnect_derived, methodname="disconnect_director") hi::A1 {
33
 
    // Uncomment to see if the call actually happens (it does... :-)
34
 
    // System.out.println("A1 Java object disconnecting from director.");
35
 
    swigCMemOwn = false;
36
 
    $jnicall;
37
 
  }
38
 
#endif
39
 
 
40
31
// basic renaming
41
32
%rename(rg) A::gg;
42
33
%feature("nodirector") hi::A1::gg;
70
61
 
71
62
%inline %{
72
63
 
73
 
typedef void NT;
 
64
typedef void VoidType;
74
65
 
75
66
class MyClass {
76
67
public:
78
69
  {
79
70
  }
80
71
  
81
 
  virtual void method(NT *)
 
72
  virtual void method(VoidType *)
82
73
  {
83
74
  }
84
75
  
95
86
  {
96
87
  }
97
88
  
98
 
  virtual void method(NT *)
 
89
  virtual void method(VoidType *)
99
90
  {
100
91
  }
101
92