mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Pass engine name and version parts as proper strings
Removes the need for _MKSTR all over the place which has the drawback of converting _MKSTR(UNKNOWN_DEFINE) to "UKNOWN_DEFINE" instead of throwing a compilation error.
This commit is contained in:
parent
ecf80fbbba
commit
6947bed015
15 changed files with 28 additions and 31 deletions
|
|
@ -951,7 +951,7 @@ Error DocData::save_classes(const String &p_default_path, const Map<String, Stri
|
|||
if (c.category == "")
|
||||
category = "Core";
|
||||
header += " category=\"" + category + "\"";
|
||||
header += String(" version=\"") + _MKSTR(VERSION_MAJOR) + "." + _MKSTR(VERSION_MINOR) + "-" + _MKSTR(VERSION_STATUS) + "\"";
|
||||
header += String(" version=\"") + itos(VERSION_MAJOR) + "." + itos(VERSION_MINOR) + "-" + VERSION_STATUS + "\"";
|
||||
header += ">";
|
||||
_write_string(f, 0, header);
|
||||
_write_string(f, 1, "<brief_description>");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue