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

« back to all changes in this revision

Viewing changes to Lib/python/pyopers.swg

  • 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:
6
6
#ifdef __cplusplus
7
7
%define %pybinoperator(pyname,oper) 
8
8
%rename(pyname) oper;
9
 
%pythonmaybecall(1) oper;
 
9
%pythonmaybecall oper;
10
10
%enddef
11
11
 
12
12
%pybinoperator(__add__,      *::operator+);
31
31
%pybinoperator(__ne__,       *::operator!=);
32
32
 
33
33
%define %pybinoperation(oper)
34
 
%pythonmaybecall(1) __ ## oper ## __;
35
 
%pythonmaybecall(1) __r ## oper ## __;
 
34
%pythonmaybecall __ ## oper ## __;
 
35
%pythonmaybecall __r ## oper ## __;
36
36
%enddef
37
37
 
38
38
%pybinoperation(add);