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

« back to all changes in this revision

Viewing changes to Examples/pike/template/example.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2006-12-20 14:43:24 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061220144324-bps3kb06xp5oy9w1
Tags: 1.3.31-1ubuntu1
* Merge from debian unstable, remaining changes:
  - drop support for pike
  - use php5 instead of php4
  - clean Runtime/ as well
  - force a few environment variables

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifdef SWIG
22
22
  %extend {
23
23
    T getitem(int index) {
24
 
      return self->get(index);
 
24
      return $self->get(index);
25
25
    }
26
26
    void setitem(int index, T val) {
27
 
      self->set(index,val);
 
27
      $self->set(index,val);
28
28
    }
29
29
  }
30
30
#endif