MCPcopy Create free account
hub / github.com/apache/thrift / add

Method add

tutorial/cpp/CppServer.cpp:53–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 void ping() override { cout << "ping()" << '\n'; }
52
53 int32_t add(const int32_t n1, const int32_t n2) override {
54 cout << "add(" << n1 << ", " << n2 << ")" << '\n';
55 return n1 + n2;
56 }
57
58 int32_t calculate(const int32_t logid, const Work& work) override {
59 cout << "calculate(" << logid << ", " << work << ")" << '\n';

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected