C++: add __cplusplus check to top-level runtime header
commit36b2d9c009d9fcbf30a76afb7f7e29fb881f9d70
authorAndy Arvanitis <andyarvanitis@gmail.com>
dateSun 20 Nov 2016, 14:25 (10 years ago)
parenta216f13
pcc/runtime/purescript.hh+4
@@ -15,6 +15,10 @@
1515#ifndef PureScript_HH
1616#define PureScript_HH
1717
18+#if !defined(__cplusplus)
19+#error This is a C++ file!
20+#endif
21+
1822// Standard includes
1923
2024#if defined(DEBUG)