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

« back to all changes in this revision

Viewing changes to Examples/test-suite/member_template.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:
1
1
%module member_template
2
2
 
 
3
%{
 
4
#ifdef max
 
5
#undef max
 
6
#endif
 
7
%}
 
8
 
 
9
  
 
10
 
3
11
%inline %{
4
12
template<class T> T max(T x, T y, T z) { return (x > y) ? x : y; }
5
13