add version checks

This commit is contained in:
James McKaskill 2013-09-12 23:28:36 -04:00
parent fc63a080a0
commit 7b0bfece26
5 changed files with 21 additions and 1 deletions

View file

@ -2,6 +2,11 @@
#define CAPN_D508EEBDC2DC42B8
/* AUTO GENERATED - DO NOT EDIT */
#include <capn.h>
#if CAPN_VERSION != 1
#error "version mismatch between capn.h and generated code"
#endif
#include "c++.capnp.h"
#ifdef __cplusplus