[lua] Fix a bug in SWIG_ALLOC_ARRAY()

improved the error messages for incorrect arguments.
Changed the output of swig_type() to use the human readable form of the type, rather than the raw swig type.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9863 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Mark Gossage 2007-07-05 01:31:51 +00:00
commit c3ec8fdce3
8 changed files with 58 additions and 14 deletions

View file

@ -43,7 +43,7 @@ for i=0,3 do
end
for i=0,3 do
assert( swig_type(sv[i]) =='_p_Struct' and sv[i].num==i)
assert( swig_type(sv[i]) =='Struct *' and sv[i].num==i)
end
-- range checking