[Lua] Fix #1569587. The name is now correct

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Mark Gossage 2006-10-06 03:22:21 +00:00
commit be9aaba2b2
2 changed files with 46 additions and 51 deletions

View file

@ -164,8 +164,8 @@ 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 *
{ SWIG_LUA_STRING, (char *)"$symname", 0, 0, (void *)"$value", 0}
%typemap(consttab) char *, const char *, char [], const 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