comparison vamp-client/CapnpRRClient.h @ 111:d74dfc11927c

OSX build fixes and logic
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 25 Oct 2016 14:48:56 +0100
parents 8c449824e08d
children ff3fd8d1b2dc
comparison
equal deleted inserted replaced
110:535ee33eb8b3 111:d74dfc11927c
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
1 2
2 #ifndef PIPER_CAPNP_CLIENT_H 3 #ifndef PIPER_CAPNP_CLIENT_H
3 #define PIPER_CAPNP_CLIENT_H 4 #define PIPER_CAPNP_CLIENT_H
4 5
5 #include "Loader.h" 6 #include "Loader.h"
284 piper::RpcResponse::Response::Which type, 285 piper::RpcResponse::Response::Which type,
285 ReqId id) { 286 ReqId id) {
286 287
287 if (r.getResponse().which() != type) { 288 if (r.getResponse().which() != type) {
288 std::cerr << "checkResponseType: wrong response type (received " 289 std::cerr << "checkResponseType: wrong response type (received "
289 << r.getResponse().which() << ", expected " << type << ")" 290 << int(r.getResponse().which()) << ", expected "
291 << int(type) << ")"
290 << std::endl; 292 << std::endl;
291 throw std::runtime_error("Wrong response type"); 293 throw std::runtime_error("Wrong response type");
292 } 294 }
293 if (ReqId(r.getId().getNumber()) != id) { 295 if (ReqId(r.getId().getNumber()) != id) {
294 std::cerr << "checkResponseType: wrong response id (received " 296 std::cerr << "checkResponseType: wrong response id (received "