mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
fix to allow jucer to handle resource files beginning with a digit
This commit is contained in:
parent
54bff61ae6
commit
248d26a2a8
1 changed files with 3 additions and 0 deletions
|
|
@ -223,6 +223,9 @@ const String makeValidCppIdentifier (String s,
|
|||
n << words[i];
|
||||
}
|
||||
|
||||
if (CharacterFunctions::isDigit (n[0]))
|
||||
n = T("_") + n;
|
||||
|
||||
// make sure it's not a reserved c++ keyword..
|
||||
static const tchar* const reservedWords[] =
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue