Commit ed694ec61f6bc7ddd7165b36d568a08d63427f55

Ozkan Sezer 2018-11-06T23:45:50

close_code.h: #error if included without matching begin_code.h

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/include/close_code.h b/include/close_code.h
index b3b70a4..f1fea37 100644
--- a/include/close_code.h
+++ b/include/close_code.h
@@ -26,6 +26,9 @@
  *  after you finish any function and structure declarations in your headers
  */
 
+#ifndef _begin_code_h
+#error close_code.h included without matching begin_code.h
+#endif
 #undef _begin_code_h
 
 /* Reset structure packing at previous byte alignment */