PageRenderTime 41ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/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
  1. /* ------------------------------------------------------------
  2. * --- ANSI/Posix C/C++ types ---
  3. * ------------------------------------------------------------ */
  4. #ifdef __cplusplus
  5. %apply size_t { std::size_t };
  6. %apply const size_t& { const std::size_t& };
  7. %apply ptrdiff_t { std::ptrdiff_t };
  8. %apply const ptrdiff_t& { const std::ptrdiff_t& };
  9. #ifndef SWIG_INOUT_NODEF
  10. %apply size_t& { std::size_t& };
  11. %apply ptrdiff_t& { std::ptrdiff_t& };
  12. #endif
  13. #endif