Commit 4e089f54 authored by Kenton Varda's avatar Kenton Varda

Check CAPNPROTO_PRIVATE in arena.h.

parent 64286a5f
......@@ -21,8 +21,12 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// THIS HEADER IS NOT INCLUDABLE BY CLIENTS, even generated code. It is entirely internal to the
// library, which means we can safely #include STL stuff.
#ifndef CAPNPROTO_ARENA_H_
#define CAPNPROTO_ARENA_H_
#ifndef CAPNPROTO_PRIVATE
#error "This header is only meant to be included by Cap'n Proto's own source code."
#endif
#include <vector>
#include <memory>
......@@ -31,9 +35,6 @@
#include "type-safety.h"
#include "message.h"
#ifndef CAPNPROTO_ARENA_H_
#define CAPNPROTO_ARENA_H_
namespace capnproto {
namespace internal {
......
......@@ -21,6 +21,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define CAPNPROTO_PRIVATE
#include "layout.h"
#include "message.h"
#include "arena.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment