~ubuntu-branches/ubuntu/maverick/swig1.3/maverick

« back to all changes in this revision

Viewing changes to Examples/ruby/enum/index.html

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Landschoff
  • Date: 2002-03-29 01:56:07 UTC
  • Revision ID: james.westby@ubuntu.com-20020329015607-c0wt03xu8oy9ioj7
Tags: upstream-1.3.11
ImportĀ upstreamĀ versionĀ 1.3.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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: /cvs/projects/SWIG/Examples/ruby/enum/index.html,v 1.1 2000/09/20 17:13:41 fukusima Exp $</tt><br>
 
15
 
 
16
<p>
 
17
This example tests SWIG's ability to wrap enumerations.  By default, SWIG
 
18
converts enumeration specifications into integer constants.  Further use
 
19
of 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,
 
31
the result of passing an integer not corresponding to any of the values
 
32
specified in the <tt>enum</tt> specification is undefined.
 
33
</ul>
 
34
 
 
35
<hr>
 
36
</body>
 
37
</html>