Remove autogenerated files
[libt2n] / examples-codegen / example1 / t2nexample.cpp
CommitLineData
208db683
JT
1// include automatically generated code
2#include "t2nexample_common.hxx"
3
4//! example procedure to export (LIBT2N_EXPORT tells the code generator that we want to export this procedure)
5LIBT2N_EXPORT std::string testfunc(std::string str)
6{
7 // exceptions derived from libt2n::t2n_exception are passed to the client transparently
8 if (str=="throw")
9 throw libt2n::t2n_runtime_error("throw me around");
10 return str+", testfunc() was here";
11}