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:
parent
8b909b0d8a
commit
255ef3522c
1 changed files with 6 additions and 3 deletions
|
|
@ -261,9 +261,12 @@ typedef struct Plot3D {
|
||||||
} Plot3D;
|
} Plot3D;
|
||||||
|
|
||||||
#ifndef SWIGJAVA
|
#ifndef SWIGJAVA
|
||||||
const PixMap *SQUARE = &PixMap_SQUARE;
|
/* These directives create constants of a specific type. They
|
||||||
const PixMap *TRIANGLE = &PixMap_TRIANGLE;
|
do not correspond to any C variable or declared constant in the
|
||||||
const PixMap *CROSS = &PixMap_CROSS;
|
header file */
|
||||||
|
%constant(PixMap *) SQUARE = &PixMap_SQUARE;
|
||||||
|
%constant(PixMap *) TRIANGLE = &PixMap_TRIANGLE;
|
||||||
|
%constant(PixMap *) CROSS = &PixMap_CROSS;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
%enabledoc
|
%enabledoc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue