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:
parent
46af4635ee
commit
b508dafbd5
2 changed files with 3 additions and 2 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue