Partial Fix #1569587. The type is now correct, but the name is still not correct.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9399 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Mark Gossage 2006-10-04 05:21:02 +00:00
commit 25062ce4e8
2 changed files with 14 additions and 9 deletions

View file

@ -164,9 +164,14 @@ but if its an output, then it should be wrappered like any other SWIG object (us
%typemap(consttab) float, double
{ SWIG_LUA_FLOAT, (char *)"$symname", 0, (double) $value, 0, 0}
%typemap(consttab) char, char *
%typemap(consttab) char *
{ SWIG_LUA_STRING, (char *)"$symname", 0, 0, (void *)"$value", 0}
// note: char is treated as a seperate special type
// signed char & unsigned char are numbers
%typemap(consttab) char
{ SWIG_LUA_CHAR, (char *)"$symname", (long)$value, 0, 0, 0}
%typemap(consttab) long long, unsigned long long
{ SWIG_LUA_STRING, (char *) "$symname", 0, 0, (void *)"$value", 0}