Add C++ library version check
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
#include "kj/common.h"
|
#include "kj/common.h"
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
|
static_assert(CAPNP_VERSION >= 3000, "Version of Cap'n Proto C++ Library is too old. Please upgrade to a version >= 0.3 and then re-install this python library");
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
T fixMaybe(::kj::Maybe<T> val) {
|
T fixMaybe(::kj::Maybe<T> val) {
|
||||||
KJ_IF_MAYBE(new_val, val) {
|
KJ_IF_MAYBE(new_val, val) {
|
||||||
|
|||||||
Reference in New Issue
Block a user