Skip to content
/ mkh Public

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

License

Notifications You must be signed in to change notification settings

egladysh/mkh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages