links added - patch #1524076

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9284 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-09-15 22:00:56 +00:00
commit 11fe04c255

View file

@ -17,13 +17,14 @@ When SWIG encounters C preprocessor macros and C declarations that look like con
it creates Java constant with an identical value. Click <a href="example.i">here</a>
to see a SWIG interface with some constant declarations in it.
<h2>Accessing Constants from Java</h2>
Click <a href="../../../Doc/Manual/Java.html#constants">here</a> for the section on constants in the SWIG and Java documentation.
<p>
Click <a href="main.java">here</a> to see a Java program that prints out the values
of the constants contained in the above file.
of the constants contained in the above file.</p>
<h2>Key points</h2>
<ul>
<li>The values of preprocessor macros are converted into Java constants.
<li>Types are inferred by syntax (e.g., "3" is an integer and "3.5" is a float).