From: Jens Thiele Date: Tue, 21 Nov 2006 12:49:49 +0000 (+0000) Subject: test support for overloaded procedures X-Git-Tag: v0.2~104 X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=commitdiff_plain;h=472456caf92ef55f7ab344e8b0087d64c8701e23 test support for overloaded procedures --- diff --git a/example-codegen/client.cpp b/example-codegen/client.cpp index 97d309e..260a60c 100644 --- a/example-codegen/client.cpp +++ b/example-codegen/client.cpp @@ -28,6 +28,7 @@ int main(int argc, char** argv) && ( cc.testfunc("hello") == "hello, testfunc() was here" ) && ( cc.testfunc_ref("hello") == "hello, testfunc() was here" ) && ( cc.t2(10) == 10 ) - && ( cc_other.t3(10, 20, "hello", std::pair(10,20)) ) ) + && ( cc_other.t3(10, 20, "hello", std::pair(10,20)) ) + && ( cc_other.t3(10) == 10 ) ) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/example-codegen/server.hxx b/example-codegen/server.hxx index ccca538..c69a9d5 100644 --- a/example-codegen/server.hxx +++ b/example-codegen/server.hxx @@ -1,7 +1,7 @@ #include #include "codegen_common.hxx" -LIBT2N_SET_DEFAULTGROUP(example); +LIBT2N_SET_DEFAULTGROUP(default); LIBT2N_EXPORT std::string testfunc(std::string str) { @@ -38,3 +38,8 @@ LIBT2N_EXPORT_GROUP(other) bool t3(int i, float f, const string &s, const pair