diff options
Diffstat (limited to 'Examples/ruby/mpointer/example.i')
-rw-r--r-- | Examples/ruby/mpointer/example.i | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Examples/ruby/mpointer/example.i b/Examples/ruby/mpointer/example.i new file mode 100644 index 000000000..253a224dc --- /dev/null +++ b/Examples/ruby/mpointer/example.i @@ -0,0 +1,15 @@ +/* File : example.i */ +%module example + +%{ +#include "example.h" +%} + +/* Let's just grab the original header file here */ +%include "example.h" + +/* Some constants */ + +%constant double (Shape::*AREAPT)(void) = &Shape::area; +%constant double (Shape::*PERIMPT)(void) = &Shape::perimeter; +%constant double (Shape::*NULLPT)(void) = 0; |