From 905c8168348bc67664dd90e45d2b0104fb3cfc2e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 30 Mar 2014 20:14:57 +1100 Subject: [PATCH] Doxy comment for main() --- source/creator/creator.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/source/creator/creator.c b/source/creator/creator.c index 6cf86c42eaf..249b18e050e 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -1478,12 +1478,21 @@ char **environ = NULL; # endif #endif - +/** + * Blender's main function responsabilities are: + * - setup subsystems. + * - handle arguments. + * - run WM_main() event loop, + * or exit when running in background mode. + */ +int main( + int argc, #ifdef WIN32 -int main(int argc, const char **UNUSED(argv_c)) /* Do not mess with const */ + const char **UNUSED(argv_c) #else -int main(int argc, const char **argv) + const char **argv #endif + ) { bContext *C; SYS_SystemHandle syshandle;