close_code.h: #error if included without matching begin_code.h
authorOzkan Sezer <sezeroz@gmail.com>
Tue, 06 Nov 2018 23:45:50 +0300
changeset 123992ea6e539b218
parent 12397 244cdac21bcd
child 12400 28303fca62bd
close_code.h: #error if included without matching begin_code.h
include/close_code.h
     1.1 --- a/include/close_code.h	Tue Nov 06 20:50:24 2018 +0300
     1.2 +++ b/include/close_code.h	Tue Nov 06 23:45:50 2018 +0300
     1.3 @@ -26,6 +26,9 @@
     1.4   *  after you finish any function and structure declarations in your headers
     1.5   */
     1.6  
     1.7 +#ifndef _begin_code_h
     1.8 +#error close_code.h included without matching begin_code.h
     1.9 +#endif
    1.10  #undef _begin_code_h
    1.11  
    1.12  /* Reset structure packing at previous byte alignment */