/tags/rel-1-3-26/SWIG/Examples/tcl/mpointer/example.i
Swig | 16 lines | 8 code | 5 blank | 3 comment | 0 complexity | 750a56f8349ac9455a4ca0da8da33224 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- /* 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;