blob: 20daf2691ad577b49d5f062efcfbe25a73a7ef51 [file] [log] [blame]
<body bgcolor="#ffffff">
<H2>Wrapping enumerations</H2>
This example tests SWIG's ability to wrap enumerations.
SWIG wraps enums in numerous different ways. The default approach is to wrap
each enum with the typesafe enum pattern. Enums are handled as integers in the JNI layer.
See the documentation for the other approaches for wrapping enums.
<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 Java program.