PageRenderTime 16ms CodeModel.GetById 12ms app.highlight 2ms 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
 1<html>
 2<head>
 3<title>SWIG:Examples:python:enum</title>
 4</head>
 5
 6<body bgcolor="#ffffff">
 7
 8
 9<tt>SWIG/Examples/python/enum/</tt>
10<hr>
11
12<H2>Wrapping enumerations</H2>
13
14<p>
15This example tests SWIG's ability to wrap enumerations.  By default, SWIG
16converts enumeration specifications into integer constants.  Further use
17of enumerated types are handled as integers.
18
19<ul>
20<li><a href="example.h">example.h</a>.  Header file containing some enums.
21<li><a href="example.i">example.i</a>.  Interface file.
22<li><a href="example.py">example.py</a>. Sample Python script.
23</ul>
24
25<h2>Notes</h2>
26
27<ul>
28<li>SWIG allows arbitrary integers to be passed as enum values.  However,
29the result of passing an integer not corresponding to any of the values
30specified in the <tt>enum</tt> specification is undefined.
31</ul>
32
33<hr>
34</body>
35</html>