PageRenderTime 37ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/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. %include <std/std_except.i>
  8. %apply size_t { std::size_t };
  9. %{
  10. #include <string>
  11. std::string swig_scm_to_string(Scheme_Object* x) {
  12. return std::string(SCHEME_STR_VAL(x));
  13. }
  14. Scheme_Object* swig_make_string(const std::string& s) {
  15. return scheme_make_string(s.c_str());
  16. }
  17. %}