summaryrefslogtreecommitdiff
path: root/Examples/ruby/template/example.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/ruby/template/example.i')
-rw-r--r--Examples/ruby/template/example.i17
1 files changed, 17 insertions, 0 deletions
diff --git a/Examples/ruby/template/example.i b/Examples/ruby/template/example.i
new file mode 100644
index 000000000..8036701ea
--- /dev/null
+++ b/Examples/ruby/template/example.i
@@ -0,0 +1,17 @@
+/* File : example.i */
+%module example
+
+%{
+#include "example.h"
+%}
+
+/* Let's just grab the original header file here */
+%include "example.h"
+
+/* Now instantiate some specific template declarations */
+
+%template(maxint) max<int>;
+%template(maxdouble) max<double>;
+%template(Vecint) vector<int>;
+%template(Vecdouble) vector<double>;
+