Fixed a few constant problems. Used new %constant directive instead.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@783 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-09-01 16:01:00 +00:00
commit 255ef3522c

View file

@ -261,9 +261,12 @@ typedef struct Plot3D {
} Plot3D;
#ifndef SWIGJAVA
const PixMap *SQUARE = &PixMap_SQUARE;
const PixMap *TRIANGLE = &PixMap_TRIANGLE;
const PixMap *CROSS = &PixMap_CROSS;
/* These directives create constants of a specific type. They
do not correspond to any C variable or declared constant in the
header file */
%constant(PixMap *) SQUARE = &PixMap_SQUARE;
%constant(PixMap *) TRIANGLE = &PixMap_TRIANGLE;
%constant(PixMap *) CROSS = &PixMap_CROSS;
#endif
%enabledoc