SWIG/Examples/tcl/constants/

Wrapping C Constants

$Header: /cvsroot/SWIG/Examples/tcl/constants/index.html,v 1.1 2000/06/17 21:41:00 beazley Exp $

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

Accessing Constants from Tcl

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

Key points