Remove name from the code template.

This commit is contained in:
Relintai 2024-01-06 14:08:00 +01:00
parent ce56ea2724
commit 9675d2375b
3 changed files with 10 additions and 6 deletions

View File

@ -1,7 +1,4 @@
$NAME$
----------------------------------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
$CODE$ $CODE$
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -18,8 +18,15 @@ The rest of the information on this page is bogus placeholder to show the format
ENUMS ENUMS
==================================================================================== ====================================================================================
Error
----------------------------------------------------------------------------------------
|||ENUM_ClockDirection||| |||ENUM_Error|||
KeyList
----------------------------------------------------------------------------------------
|||ENUM_KeyList|||

View File

@ -528,9 +528,9 @@ void process_file(const String &path) {
String keyword = "|||" + E->get() + "|||"; String keyword = "|||" + E->get() + "|||";
String class_str = class_index[c]; String class_str = class_index[c];
String class_name = get_structure_name(class_str); //String class_name = get_structure_name(class_str);
index_str = index_str.replace(keyword, code_template.replace("$CODE$", class_str).replace("$NAME$", class_name)); index_str = index_str.replace(keyword, code_template.replace("$CODE$", class_str));
used_keywords.insert(c); used_keywords.insert(c);
} }