Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 497 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 497 Bytes

mkh

C/C++ header maker

This tiny script will make an empty C/C++ header with the #ifdef crap in it w/o the risk of macro name clashes.

You can copy it to your local bin like:

$ sudo cp mkh.sh /opt/local/bin/mkh

Make sure to set attributes:

$ sudo chmod +x /opt/local/bin/mkh

To generate a header:

$ mkh > myheader.h

It'll spit out somethig like

#ifndef H_754B2010740C456BBF0C7BC264833CAD
#define H_754B2010740C456BBF0C7BC264833CAD
#endif

😃