I add the following preprocessor code in header files all the time.
#ifdef _HELLO_H_ #define _HELLO_H_ #endif
Is there a way to do this automatically (I mean, when I load the header file for the first time, the emacs just adds the code), or manually (I mean, I have some M-x SOMETHING)?
If none exists, how can I program the elisp code to this?
- Check if #ifdef is not defined.
- coin the name _HELLO_H_ out of the name of the header file.