/trunk/Examples/python/smartptr/example.i

# · Swig · 20 lines · 8 code · 8 blank · 4 comment · 0 complexity · 17aac84e1dcdb010114e3d6c978d9f6b MD5 · raw file

  1. /* File : example.i */
  2. %module example
  3. %{
  4. #include "example.h"
  5. #include "smartptr.h"
  6. %}
  7. /* Let's just grab the original header file here */
  8. %include "example.h"
  9. /* Grab smart pointer template */
  10. %include "smartptr.h"
  11. /* Instantiate smart-pointers */
  12. %template(ShapePtr) SmartPtr<Shape>;