PageRenderTime 45ms CodeModel.GetById 19ms 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. #include "example.h"
  5. %}
  6. /* Let's just grab the original header file here */
  7. %include "example.h"
  8. /* Some constants */
  9. %constant double (Shape::*AREAPT)(void) = &Shape::area;
  10. %constant double (Shape::*PERIMPT)(void) = &Shape::perimeter;
  11. %constant double (Shape::*NULLPT)(void) = 0;