[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:
parent
d269f9cd16
commit
c3ec8fdce3
8 changed files with 58 additions and 14 deletions
|
|
@ -348,3 +348,21 @@ $1=&temp;%}
|
|||
}
|
||||
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Specials
|
||||
* ----------------------------------------------------------------------------- */
|
||||
// swig::LANGUAGE_OBJ was added to allow containers of native objects
|
||||
// however its rather difficult to do this in lua, as you cannot hold pointers
|
||||
// to native objects (they are held in the interpreter)
|
||||
// therefore for now: just ignoring this feature
|
||||
#ifdef __cplusplus
|
||||
%ignore swig::LANGUAGE_OBJ;
|
||||
|
||||
%inline %{
|
||||
namespace swig {
|
||||
typedef struct{} LANGUAGE_OBJ;
|
||||
//typedef void* LANGUAGE_OBJ;
|
||||
}
|
||||
%}
|
||||
|
||||
#endif // __cplusplus
|
||||
Loading…
Add table
Add a link
Reference in a new issue