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.
is ignored because SWIG has no idea what type of variable this would be.#define EXTERN extern
proc foo {} { global ICONST # Some C constant puts $ICONST }