Skip to content

Commit

Permalink
generator fix for returning a string with no parameters, issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Niall Ryan authored and Niall Ryan committed Mar 22, 2011
1 parent 0e9704b commit 4898551
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cpp/Source/ProtoBufRemote/Generators.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
#define PBR_X_STUB_MAKE_CALL_WITH_RETURN_PTR(method) \
PBR_X_PARAM_TYPE(PBR_X_METHOD_RETURN(method)) resultValue; \
PBR_X_METHOD_NAME(method)(BOOST_PP_EXPR_IF(PBR_X_METHOD_HAS_PARAMS(method), \
BOOST_PP_SEQ_FOR_EACH_I(PBR_X_STUB_MAKE_CALL_PARAM, ~, PBR_X_METHOD_PARAMS(method))), &resultValue); \
BOOST_PP_SEQ_FOR_EACH_I(PBR_X_STUB_MAKE_CALL_PARAM, ~, PBR_X_METHOD_PARAMS(method)) BOOST_PP_COMMA()) &resultValue); \
result->PBR_X_PARAM_SET_FUNC(PBR_X_METHOD_RETURN(method))(resultValue); \
return true;

Expand Down
2 changes: 2 additions & 0 deletions Cpp/Source/ProtoBufRemoteTest/ProxyGeneratorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ PBR_SERVICE(SampleService2,
PBR_METHOD(DoStuff, PBR_VOID(PBR_STRING))
PBR_METHOD(DoOtherStuff, PBR_VOID(PBR_STRING PBR_INT PBR_BOOL))
PBR_METHOD(DoEvenMoreStuff, PBR_VOID(PBR_VOID))
PBR_METHOD(GetString, PBR_STRING(PBR_VOID))
PBR_METHOD(GetString2, PBR_STRING(PBR_INT))
)

namespace {
Expand Down

0 comments on commit 4898551

Please sign in to comment.