When defining code templates in Eclipse CDT, we can use a variable named ${include_guard_symbol}
that translates to MYFILE_H
.
I would like to have something more explicit: SRC_MYFOLDER_MYFILE_H
.
I followed the steps given in an answer to Stack Overflow question Customizing include-guard for Eclipse CDT, but all I get is for ${include_guard_symbol}
to return an empty string! I also saw other related questions on Stack Overflow about adding the namespace to the include guard, but that's not what I'm looking for.
I am using Eclipse version 3.5.2 with CDT version 6.0.2.
Is there another way of achieving the desired result?