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

« back to all changes in this revision

Viewing changes to Examples/python/smartptr/example.i

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-08-02 15:57:10 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040802155710-bm292q1d6x6tw7gc
Tags: 1.3.21-5ubuntu1
Fix linking for ruby, python, perl and tcl bindings

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* File : example.i */
 
2
%module example
 
3
 
 
4
%{
 
5
#include "example.h"
 
6
#include "smartptr.h"
 
7
%}
 
8
 
 
9
/* Let's just grab the original header file here */
 
10
%include "example.h"
 
11
 
 
12
/* Grab smart pointer template */
 
13
 
 
14
%include "smartptr.h"
 
15
 
 
16
/* Instantiate smart-pointers */
 
17
 
 
18
%template(ShapePtr) SmartPtr<Shape>;
 
19
 
 
20