/tags/rel-1-3-26/SWIG/Lib/mzscheme/std_common.i
Swig | 21 lines | 17 code | 4 blank | 0 comment | 0 complexity | 5659c322d45c83b2747ff1ce35ef62dd MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- //
- // SWIG typemaps for STL - common utilities
- // Luigi Ballabio
- // Aug 3, 2002
- //
- // MzScheme implementation
- %include <std/std_except.i>
- %apply size_t { std::size_t };
- %{
- #include <string>
- std::string swig_scm_to_string(Scheme_Object* x) {
- return std::string(SCHEME_STR_VAL(x));
- }
- Scheme_Object* swig_make_string(const std::string& s) {
- return scheme_make_string(s.c_str());
- }
- %}