Improved the Lua documentation

- Lua documentation now needs a string giving the arguments list.
- When generating documentation first prints the command list and then prints
  the documentation for each command.
- Supports fixed max line length (set to 80)
- Uses four blank spaces as padding (easily replacable)
This commit is contained in:
Jonas Strandstedt
2014-12-03 14:13:53 +01:00
parent fc6fbf1587
commit a5e122b822
7 changed files with 113 additions and 58 deletions

View File

@@ -42,6 +42,7 @@ public:
struct Function {
std::string name;
lua_CFunction function;
std::string argumentText;
std::string helpText;
};
std::string name;