1 // include automatically generated code
2 #include "t2nexample_common.hxx"
4 //! example procedure to export (LIBT2N_EXPORT tells the code generator that we want to export this procedure)
5 LIBT2N_EXPORT std::string testfunc(std::string str)
7 // exceptions derived from libt2n::t2n_exception are passed to the client transparently
9 throw libt2n::t2n_runtime_error("throw me around");
10 return str+", testfunc() was here";