PageRenderTime 17ms CodeModel.GetById 12ms app.highlight 2ms 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
 1
 2/* ------------------------------------------------------------
 3 * --- ANSI/Posix C/C++ types ---
 4 * ------------------------------------------------------------ */
 5
 6
 7#ifdef __cplusplus
 8
 9%apply size_t { std::size_t };
10%apply const size_t& { const std::size_t& };
11
12%apply ptrdiff_t { std::ptrdiff_t };
13%apply const ptrdiff_t& { const std::ptrdiff_t& };
14
15#ifndef SWIG_INOUT_NODEF
16%apply size_t& { std::size_t& };
17%apply ptrdiff_t& { std::ptrdiff_t& };
18#endif
19
20#endif
21