Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-03-30 13:14:57 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-03-30 13:14:57 +0400
commit905c8168348bc67664dd90e45d2b0104fb3cfc2e (patch)
tree17587866156658c50fc77444c475204577365185 /source/creator
parent8d1b289b78be3fc781aacfc55688a83425f1720e (diff)
Doxy comment for main()
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c15
1 files 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;