test support for overloaded procedures
[libt2n] / example-codegen / server.hxx
index b20708b..c69a9d5 100644 (file)
@@ -1,7 +1,7 @@
 #include <string>
 #include "codegen_common.hxx"
 
-LIBT2N_SET_DEFAULTGROUP(example);
+LIBT2N_SET_DEFAULTGROUP(default);
 
 LIBT2N_EXPORT std::string testfunc(std::string str) 
 {
@@ -34,7 +34,12 @@ LIBT2N_EXPORT int t2(int i)
 
 using namespace std;
 
-LIBT2N_EXPORT bool t3(int i, float f, const string &s, const pair<int, float> &p)
+LIBT2N_EXPORT_GROUP(other) bool t3(int i, float f, const string &s, const pair<int, float> &p)
 {
     return (i==p.first) && (f==p.second) && (s=="hello");
 }
+
+LIBT2N_EXPORT_GROUP(other) int t3(int i)
+{
+    return i;
+}