PageRenderTime 43ms CodeModel.GetById 42ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-26/SWIG/Examples/ruby/enum/index.html

#
HTML | 37 lines | 27 code | 10 blank | 0 comment | 0 complexity | d4d4926d5f6981dce6bfdb22f299f0fa 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
 6<body bgcolor="#ffffff">
 7
 8
 9<tt>SWIG/Examples/ruby/enum/</tt>
10<hr>
11
12<H2>Wrapping enumerations</H2>
13
14<tt>$Header$</tt><br>
15
16<p>
17This example tests SWIG's ability to wrap enumerations.  By default, SWIG
18converts enumeration specifications into integer constants.  Further use
19of enumerated types are handled as integers.
20
21<ul>
22<li><a href="example.h">example.h</a>.  Header file containing some enums.
23<li><a href="example.i">example.i</a>.  Interface file.
24<li><a href="runme.rb">runme.rb</a>. Sample Ruby script.
25</ul>
26
27<h2>Notes</h2>
28
29<ul>
30<li>SWIG allows arbitrary integers to be passed as enum values.  However,
31the result of passing an integer not corresponding to any of the values
32specified in the <tt>enum</tt> specification is undefined.
33</ul>
34
35<hr>
36</body>
37</html>