/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
- //
- // 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());
- }
- %}