fix makefile for parallel builds
[libt2n] / example-codegen / server.hxx
1 #include <string>
2 #include "codegen_common.hxx"
3
4 using namespace std;
5
6 LIBT2N_SET_DEFAULTGROUP(example);
7
8 LIBT2N_EXPORT std::string testfunc(std::string str) 
9 {
10     string ret;
11     if (str=="throw")
12         throw libt2n::t2n_runtime_error("throw me around");
13     if (str=="big")
14         ret.insert(0,100*1024,'x');
15     else
16         ret=str+", testfunc() was here";
17     return ret;
18 }