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

« back to all changes in this revision

Viewing changes to Examples/test-suite/python/callback.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
    return a;
13
13
  }
14
14
  
 
15
  int foof(int a) {
 
16
    return 3*a;
 
17
  }  
 
18
  
15
19
  struct A 
16
20
  {
17
21
    static int bar(int a) {
23
27
      return -a;
24
28
    }
25
29
 
26
 
    friend int foof(int a) 
27
 
    {
28
 
      return 3*a;
29
 
    }    
 
30
    //friend int foof(int a);
30
31
  };
31
 
  
 
32
 
32
33
 
33
34
  extern "C" int foobar(int a, int (*pf)(int a)) {
34
35
    return pf(a);