diff options
| author | Masaki Fukushima <fukusima@users.sourceforge.net> | 2000-09-20 17:17:42 +0000 |
|---|---|---|
| committer | Masaki Fukushima <fukusima@users.sourceforge.net> | 2000-09-20 17:17:42 +0000 |
| commit | db4c6ff38e1562840e0e6c91b0dcacdc136af38b (patch) | |
| tree | bde1f93e89d036b81022a047186479db796a4096 /Examples/ruby/enum/index.html | |
| parent | 66b7d171d730dc9f3088f7c260b8b64fe901de55 (diff) | |
| download | swig-db4c6ff38e1562840e0e6c91b0dcacdc136af38b.tar.gz | |
Ruby enum example added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/ruby/enum/index.html')
| -rw-r--r-- | Examples/ruby/enum/index.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Examples/ruby/enum/index.html b/Examples/ruby/enum/index.html new file mode 100644 index 000000000..9510d18ea --- /dev/null +++ b/Examples/ruby/enum/index.html @@ -0,0 +1,37 @@ +<html> +<head> +<title>SWIG:Examples:ruby:enum</title> +</head> + +<body bgcolor="#ffffff"> + + +<tt>SWIG/Examples/ruby/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="runme.rb">runme.rb</a>. Sample Ruby 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> |
