blob: 2f7c42095a6c1a21f7dbcbe05018c9e055be0552 [file] [log] [blame]
<body bgcolor="#ffffff">
<H2>Wrapping enumerations</H2>
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.
<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=""></a>. Sample Python script.
<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.