git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6683 626c5289-ae23-0410-ae9c-e8d60b6d4f22
29 lines
733 B
Text
29 lines
733 B
Text
|
|
/* ------------------------------------------------------------
|
|
* --- 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
|
|
|
|
|
|
|