Write all menu function definitions on top of every menu list item

This commit is contained in:
Jan
2021-10-24 16:22:36 +02:00
parent 70c31143f4
commit c1fd5b80a4
4 changed files with 104 additions and 19 deletions

View File

@ -776,6 +776,16 @@ MenuDumper::MenuDumper(std::ostream& stream)
{
}
void MenuDumper::WriteFunctionDef(const std::string& functionName, const Statement_s* statement)
{
StartFunctionDefScope();
WriteStringProperty("name", functionName);
WriteStatementProperty("value", statement, false);
EndScope();
}
void MenuDumper::WriteMenu(const menuDef_t* menu)
{
StartMenuDefScope();