Fixes to support %constant strings defined by other variables or preprocessor

defines such as:
#define STR "a constant string"
%constant char *ConstantValue = STR;


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7600 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Kevin Ruland 2005-10-07 01:18:29 +00:00
commit b508dafbd5
2 changed files with 3 additions and 2 deletions

View file

@ -455,7 +455,7 @@
{ SWIG_FLOAT, (char *) SWIG_prefix "$symname", 0, (double) $value, 0, 0}
%typemap(consttab) char, char *
{ SWIG_STRING, (char *) SWIG_prefix "$symname", 0, 0, (void *)"$value", 0}
{ SWIG_STRING, (char *) SWIG_prefix "$symname", 0, 0, (void *)$value, 0}
%typemap(consttab) long long, unsigned long long
{ SWIG_STRING, (char *) SWIG_prefix "$symname", 0, 0, (void *) "$value", 0}