Skip to content

Commit

Permalink
Scripting docs generator: Display const std::string& return type as…
Browse files Browse the repository at this point in the history
… `string`
  • Loading branch information
Vankata453 committed Aug 2, 2024
1 parent 1fbfd10 commit c706def
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/scripting_docs_gen/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ static const std::unordered_map<std::string, std::string> s_simplified_types = {
{ "unsigned long long", "int" },
{ "double", "float" },
{ "std::string", "string" },
{ "std::wstring", "string" }
{ "std::wstring", "string" },
{ "const std::string &", "string" },
{ "const std::wstring &", "string" }
};

static void parse_base_classes(tinyxml2::XMLElement* p_inheritancenode, tinyxml2::XMLElement* p_inheritancegraph, Class::BaseClasses& list)
Expand Down

0 comments on commit c706def

Please sign in to comment.