/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
1// 2// SWIG typemaps for STL - common utilities 3// Luigi Ballabio 4// Aug 3, 2002 5// 6// MzScheme implementation 7 8%include <std/std_except.i> 9 10%apply size_t { std::size_t }; 11 12%{ 13#include <string> 14 15std::string swig_scm_to_string(Scheme_Object* x) { 16 return std::string(SCHEME_STR_VAL(x)); 17} 18Scheme_Object* swig_make_string(const std::string& s) { 19 return scheme_make_string(s.c_str()); 20} 21%}