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