/trunk/Lib/typemaps/misctypes.swg
Unknown | 21 lines | 13 code | 8 blank | 0 comment | 0 complexity | 319f4adc424c85e73397e58ff721cc7d MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- /* ------------------------------------------------------------
- * --- ANSI/Posix C/C++ types ---
- * ------------------------------------------------------------ */
- #ifdef __cplusplus
- %apply size_t { std::size_t };
- %apply const size_t& { const std::size_t& };
- %apply ptrdiff_t { std::ptrdiff_t };
- %apply const ptrdiff_t& { const std::ptrdiff_t& };
- #ifndef SWIG_INOUT_NODEF
- %apply size_t& { std::size_t& };
- %apply ptrdiff_t& { std::ptrdiff_t& };
- #endif
- #endif