PageRenderTime 267ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/ruby/enum/index.html

#
HTML | 35 lines | 26 code | 9 blank | 0 comment | 0 complexity | 1fdbe29683f7b212e9736f9944b4eaa5 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:ruby:enum</title>
  4. </head>
  5. <body bgcolor="#ffffff">
  6. <tt>SWIG/Examples/ruby/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="runme.rb">runme.rb</a>. Sample Ruby 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>