2 #include "codegen_common.hxx"
4 LIBT2N_SET_DEFAULTGROUP(example);
6 LIBT2N_EXPORT std::string testfunc(std::string str)
10 throw libt2n::t2n_runtime_error("throw me around");
12 ret.insert(0,100*1024,'x');
14 ret=str+", testfunc() was here";
18 LIBT2N_EXPORT std::string testfunc_ref(const std::string &str)
22 throw libt2n::t2n_runtime_error("throw me around");
24 ret.insert(0,100*1024,'x');
26 ret=str+", testfunc() was here";
30 LIBT2N_EXPORT int t2(int i)
37 LIBT2N_EXPORT_GROUP(other) bool t3(int i, float f, const string &s, const pair<int, float> &p)
39 return (i==p.first) && (f==p.second) && (s=="hello");