[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

@ -8,7 +8,7 @@ setmetatable(getfenv(),{__index=function (t,i) error("undefined global variable
-- helper to check type
function is_std_string(s)
return type(s)=='userdata' and swig_type(s)=='_p_std__string'
return type(s)=='userdata' and swig_type(s)=='std::string *'
end
-- std::string by value is just a Lua string