You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
467 B
22 lines
467 B
4 years ago
|
|
||
|
/* ------------------------------------------------------------
|
||
|
* --- 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
|
||
|
|