PageRenderTime 126ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/python/enum/index.html

#
HTML | 35 lines | 26 code | 9 blank | 0 comment | 0 complexity | 50054374a3f2fb3a778fdf9cbf69a8d6 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. <html>
  2. <head>
  3. <title>SWIG:Examples:python:enum</title>
  4. </head>
  5. <body bgcolor="#ffffff">
  6. <tt>SWIG/Examples/python/enum/</tt>
  7. <hr>
  8. <H2>Wrapping enumerations</H2>
  9. <p>
  10. This example tests SWIG's ability to wrap enumerations. By default, SWIG
  11. converts enumeration specifications into integer constants. Further use
  12. of enumerated types are handled as integers.
  13. <ul>
  14. <li><a href="example.h">example.h</a>. Header file containing some enums.
  15. <li><a href="example.i">example.i</a>. Interface file.
  16. <li><a href="example.py">example.py</a>. Sample Python script.
  17. </ul>
  18. <h2>Notes</h2>
  19. <ul>
  20. <li>SWIG allows arbitrary integers to be passed as enum values. However,
  21. the result of passing an integer not corresponding to any of the values
  22. specified in the <tt>enum</tt> specification is undefined.
  23. </ul>
  24. <hr>
  25. </body>
  26. </html>