#include #include "codegen_common.hxx" using namespace std; LIBT2N_SET_DEFAULTGROUP(example); LIBT2N_EXPORT std::string testfunc(std::string str) { string ret; if (str=="throw") throw libt2n::t2n_runtime_error("throw me around"); if (str=="big") ret.insert(0,100*1024,'x'); else ret=str+", testfunc() was here"; return ret; }