swig/Examples/test-suite/sizet.i
Olly Betts 5f38f9cc78 [Chicken] Remove code for Chicken
We dropped support for it in SWIG 4.0.0 and nobody has stepped forward
to revive it in over 2 years.

See #2009.
2021-05-16 08:42:39 +12:00

50 lines
614 B
OpenEdge ABL

%module sizet
%{
#include <vector>
%}
%include "std_common.i"
%inline
{
size_t test1(size_t s)
{
return s;
}
std::size_t test2(std::size_t s)
{
return s;
}
const std::size_t& test3(const std::size_t& s)
{
return s;
}
const size_t& test4(const size_t& s)
{
return s;
}
}
#ifdef SWIGPYTHON
%include "std_vector.i"
%template(vectors) std::vector<unsigned long>;
%inline
{
std::vector<std::size_t> testv1(std::vector<std::size_t> s)
{
return s;
}
const std::vector<std::size_t>& testv2(const std::vector<std::size_t>& s)
{
return s;
}
}
#endif