Generating unique header guard name failes completely


#1

It allways generates: JUCER_COMPONENTTEMPLATE_JUCEHEADER:

#ifndef JUCER_COMPONENTTEMPLATE_JUCEHEADER
#define JUCER_COMPONENTTEMPLATE_JUCEHEADER

According to the code, this shouldn’t happen. Any idea?


#2

The template should contain

#ifndef %%headerGuard%% #define %%headerGuard%%

There was a bug where one version of the jucer templates had the wrong thing at the top of the header, but I thought this was ok in the latest release.


#3

[quote=“jules”]The template should contain

#ifndef %%headerGuard%% #define %%headerGuard%%

There was a bug where one version of the jucer templates had the wrong thing at the top of the header, but I thought this was ok in the latest release.[/quote]

Its working now. It was because my templates directory was set wrong.

Perhaps its possible to use some versioning scheme to avoid this problem?


#4

yes, a versioning scheme might not be a bad idea…


#5