add missing %types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6683 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e49611443e
commit
d4992f8f26
1 changed files with 6 additions and 0 deletions
|
|
@ -3,21 +3,27 @@
|
|||
* --- ANSI/Posix C/C++ types ---
|
||||
* ------------------------------------------------------------ */
|
||||
|
||||
%types(size_t);
|
||||
%apply unsigned long { size_t };
|
||||
%apply const unsigned long& { const size_t& };
|
||||
%apply unsigned long& { size_t& };
|
||||
|
||||
%types(ptrdiff_t);
|
||||
%apply long { ptrdiff_t };
|
||||
%apply const long& { const ptrdiff_t& };
|
||||
%apply long& { ptrdiff_t& };
|
||||
|
||||
#ifdef __cplusplus
|
||||
%types(std::size_t);
|
||||
%apply unsigned long { std::size_t };
|
||||
%apply const unsigned long& { const std::size_t& };
|
||||
%apply unsigned long& { std::size_t& };
|
||||
|
||||
%types(std::ptrdiff_t);
|
||||
%apply long { std::ptrdiff_t };
|
||||
%apply const long& { const std::ptrdiff_t& };
|
||||
%apply long& { std::ptrdiff_t& };
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue