1 /* -----------------------------------------------------------------------------
2 * See the LICENSE file for information on copyright, usage and redistribution
3 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
7 * SWIG typemaps for STL - common utilities
8 * ----------------------------------------------------------------------------- */
10 %include <std/std_except.i>
12 %apply size_t { std::size_t };
17 std::string swig_scm_to_string(Scheme_Object* x) {
18 return std::string(SCHEME_STR_VAL(x));
20 Scheme_Object* swig_make_string(const std::string& s) {
21 return scheme_make_string(s.c_str());