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 };
16 CAML_VALUE SwigString_FromString(const std::string& s) {
17 return caml_val_string((char *)s.c_str());
19 std::string SwigString_AsString(CAML_VALUE o) {
20 return std::string((char *)caml_ptr_val(o,0));