egladysh / mkh

C/C++ header maker - Utilizing GUID for Include Guards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

😃

About

C/C++ header maker - Utilizing GUID for Include Guards

License:MIT License


Languages

Language:Shell 100.0%