summaryrefslogtreecommitdiff
path: root/Examples/python/enum/index.html
diff options
context:
space:
mode:
authorDave Beazley <dave-swig@dabeaz.com>2000-09-19 22:28:15 +0000
committerDave Beazley <dave-swig@dabeaz.com>2000-09-19 22:28:15 +0000
commit4fd0a45a9b1872d19ea140c6db1ce86d7c34f30b (patch)
tree2ffc75d2b9c8c754fda727c54242b3d267769fc1 /Examples/python/enum/index.html
parent3d800bf53cf4aaf4c8c33a7d05afd72f2aa942e0 (diff)
downloadswig-4fd0a45a9b1872d19ea140c6db1ce86d7c34f30b.tar.gz
new example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@861 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/python/enum/index.html')
-rw-r--r--Examples/python/enum/index.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/Examples/python/enum/index.html b/Examples/python/enum/index.html
new file mode 100644
index 000000000..e5c7c578a
--- /dev/null
+++ b/Examples/python/enum/index.html
@@ -0,0 +1,37 @@
+<html>
+<head>
+<title>SWIG:Examples:python:enum</title>
+</head>
+
+<body bgcolor="#ffffff">
+
+
+<tt>SWIG/Examples/python/enum/</tt>
+<hr>
+
+<H2>Wrapping enumerations</H2>
+
+<tt>$Header$</tt><br>
+
+<p>
+This example tests SWIG's ability to wrap enumerations. By default, SWIG
+converts enumeration specifications into integer constants. Further use
+of enumerated types are handled as integers.
+
+<ul>
+<li><a href="example.h">example.h</a>. Header file containing some enums.
+<li><a href="example.i">example.i</a>. Interface file.
+<li><a href="example.py">example.py</a>. Sample Python script.
+</ul>
+
+<h2>Notes</h2>
+
+<ul>
+<li>SWIG allows arbitrary integers to be passed as enum values. However,
+the result of passing an integer not corresponding to any of the values
+specified in the <tt>enum</tt> specification is undefined.
+</ul>
+
+<hr>
+</body>
+</html>