Skip to content

Commit

Permalink
improved documentation entry page. What is the application's entry po…
Browse files Browse the repository at this point in the history
…int?
  • Loading branch information
hiran committed Oct 19, 2023
1 parent 0d8009a commit 4d65277
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
22 changes: 18 additions & 4 deletions Doc/ApiDocIntro.dox
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* extracted and shaped into an easy to browse hypermedia documentation. Links
* to related information make getting along much easier.
*
* \section This documentation's features
*
* In the top of the page you can find the project and version this documentation
* was created for. In the menu bar below you see three entries.
*
Expand All @@ -22,18 +20,34 @@
* sections that can be expanded. Here you find inheritance and collaboration
* diagrams that can help navigate around quickly.
*
* \section Enriching the code
* \section structure Oolite Code Structure
*
* There are two entry points:
* <ul>
* <li><a href="https://github.com/OoliteProject/oolite/blob/master/src/Cocoa/main.m#L11">int main(int argc, const char *argv[])</a><br/>
* for MacOS
* </li>
* <li><a href="https://github.com/OoliteProject/oolite/blob/master/src/SDL/main.m#L53">int main(int argc, char *argv[])</a><br/>
* for Linux and Windows
* </li>
* </ul>
*
* \section maintenance Maintaining this documentation
*
* \subsection comments Enriching the code
*
* As mentioned above, this documentation contains all the information from
* the source code. Of course you can enrich the source with more information
* easily. The huge advanatage is that you do not even need to leave your
* favourite editing tool. Just add comments in a way that doxygen can
* recognize - and this is a small change only.
*
* This entry page can be found under Doc/ApiDocIntro.dox.
*
* See more at
* <a href="https://www.doxygen.nl/manual/docblocks.html">Documenting the code</a>
*
* \subsection Generating this documentation
* \subsection processing Generating this documentation
*
* To generate the most up to date documentation, just invoke Doxygen from the
* project's main directory. All the necessary settings are in the Doxyfile
Expand Down
7 changes: 6 additions & 1 deletion src/Cocoa/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
NSUInteger gDebugFlags = 0;
#endif


/**
* Entry point for MacOS.
*
* @param argc the number of command line arguments
* @param argv the string array values of the command line arguments
*/
int main(int argc, const char *argv[])
{
OOLoggingInit();
Expand Down
8 changes: 7 additions & 1 deletion src/SDL/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@
uint32_t gDebugFlags = 0;
#endif


/**
* Entry point for Linux and Windows systems.
* If -load is passed, the argument after that is loaded as savegame.
*
* @param argc the number of command line arguments
* @param argv the string array values of the command line arguments
*/
int main(int argc, char *argv[])
{
#ifdef GNUSTEP
Expand Down

0 comments on commit 4d65277

Please sign in to comment.