last performance improvements, and typemaps fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7865 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
cb4a1ff465
commit
f3acf52370
5 changed files with 164 additions and 46 deletions
|
|
@ -6,14 +6,16 @@
|
|||
|
||||
#ifdef __cplusplus
|
||||
|
||||
namespace std
|
||||
{
|
||||
typedef ::ptrdiff_t ptrdiff_t;
|
||||
typedef ::size_t size_t;
|
||||
}
|
||||
%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
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue