SWIG/Examples/perl5/constants/

Wrapping C Constants

$Header: /cvsroot/swig/SWIG/Examples/perl5/constants/index.html,v 1.2 2004/01/20 21:24:04 cheetah Exp $

When SWIG encounters C preprocessor macros and C declarations that look like constants, it creates Perl5 variables with an identical value. Click here to see a SWIG interface with some constant declarations in it.

Accessing Constants from Perl

Click here to see a script that prints out the values of the constants contained in the above file.

Key points