PageRenderTime 22ms CodeModel.GetById 21ms app.highlight 0ms RepoModel.GetById 0ms app.codeStats 0ms

/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
 1/* File : example.i */
 2%module example
 3
 4%{
 5#include "example.h"
 6%}
 7
 8/* Let's just grab the original header file here */
 9%include "example.h"
10
11/* Some constants */
12
13%constant double (Shape::*AREAPT)(void) = &Shape::area;
14%constant double (Shape::*PERIMPT)(void) = &Shape::perimeter;
15%constant double (Shape::*NULLPT)(void) = 0;
16