add ptrdiff_t and size_t properly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7792 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1f71060e66
commit
9db98e0459
2 changed files with 53 additions and 35 deletions
|
|
@ -3,22 +3,15 @@
|
|||
* --- ANSI/Posix C/C++ types ---
|
||||
* ------------------------------------------------------------ */
|
||||
|
||||
%apply unsigned long { size_t };
|
||||
%apply const unsigned long& { const size_t& };
|
||||
%apply unsigned long& { size_t& };
|
||||
|
||||
%apply long { ptrdiff_t };
|
||||
%apply const long& { const ptrdiff_t& };
|
||||
%apply long& { ptrdiff_t& };
|
||||
|
||||
#ifdef __cplusplus
|
||||
%apply unsigned long { std::size_t };
|
||||
%apply const unsigned long& { const std::size_t& };
|
||||
%apply unsigned long& { std::size_t& };
|
||||
%apply size_t { std::size_t };
|
||||
%apply const size_t& { const std::size_t& };
|
||||
%apply size_t& { std::size_t& };
|
||||
|
||||
%apply long { std::ptrdiff_t };
|
||||
%apply const long& { const std::ptrdiff_t& };
|
||||
%apply long& { std::ptrdiff_t& };
|
||||
%apply ptrdiff_t { std::ptrdiff_t };
|
||||
%apply const ptrdiff_t& { const std::ptrdiff_t& };
|
||||
%apply ptrdiff_t& { std::ptrdiff_t& };
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue