all: test
-test-bin: test.cc janssonxx.h janssonxx.tcc Makefile
+test-bin: test.cpp jansson.hpp jansson-impl.hpp Makefile
$(CXX) -o $@ -g -O0 -Wall $(JANSSON_CFLAGS) $< $(JANSSON_LIBS)
test: test-bin
+// janssonxx - C++ wrapper for jansson, implementation file
+//
+// author: Sean Middleditch <sean@middleditch.us>
+//
+// janssonxx is free software; you can redistribute it and/or modify
+// it under the terms of the MIT license. See LICENSE for details.
+
+#if !defined(IN_JANSSON_HPP)
+# error "jansson-impl.hpp may only by included from jansson.hpp"
+#endif
+
namespace jansson {
namespace _private {
// assignment operator
// janssonxx is free software; you can redistribute it and/or modify
// it under the terms of the MIT license. See LICENSE for details.
-
-#if !defined(JANSSONXX_H)
-#define JANSSONXX_H 1
+#if !defined(JANSSON_HPP)
+#define JANSSON_HPP 1
#include <string>
#include <ostream>
inline std::istream& operator>>(std::istream& is, jansson::Value& value);
// include implementation code
-#include "janssonxx.tcc"
+#define IN_JANSSON_HPP 1
+#include "jansson-impl.hpp"
+#undef IN_JANSSON_HPP
-#endif // defined(JANSSONXX_H)
+#endif // defined(JANSSON_HPP)