Hi all,
I'm a pretty new C::B user, so please bear with me if I violate any forum protocol. :-)
I would like to write a plugin that makes it easy to insert a GUID/UUID into the source code. There are many uses for this, one of which is to ensure my header file multiple-include protectors are unique, like this:
In MyClass.h:
#ifndef MY_CLASS_H_c624d840_ab24_11df_94e2_0800200c9a66
#define MY_CLASS_H_c624d840_ab24_11df_94e2_0800200c9a66
class MyClass
{
};
#endif //MY_CLASS_H_c624d840_ab24_11df_94e2_0800200c9a66
I guess I would like the plugin to also be able to automate this too, as in it would see the file name is "MyClass.h", and it would put in the #ifndef/#define/#endif automatically, using the file naming and a fresh GUID.
I was just wondering if a plugin like this exists or is already in development. If not, I could use some general pointers on how to get started.
Thanks!
Chris Anderson
P.S. Code::Blocks rules!!!