Docs: minor edits to code comments
authorCampbell Barton <ideasman42@gmail.com>
Sun, 24 Jan 2016 03:25:01 +0000 (14:25 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 24 Jan 2016 03:29:14 +0000 (14:29 +1100)
source/blender/windowmanager/intern/wm_files.c
source/blender/windowmanager/intern/wm_init_exit.c
source/creator/creator.c

index 01699b2360b539035f65b152e2e5e873a93e13f3..845e190c82d0333d4a0a700ef753369d37d7a52f 100644 (file)
@@ -469,6 +469,8 @@ static void wm_file_read_post(bContext *C, bool is_startup_file)
                BPY_python_reset(C);
                addons_loaded = true;
        }
+#else
+       UNUSED_VARS(is_startup_file);
 #endif  /* WITH_PYTHON */
 
        WM_operatortype_last_properties_clear_all();
index 966f0fa66a18edae016d4800dd501f4d205a255e..b6b4f42e1b78c2a54672e0d373ccaf91ebe7e0a6 100644 (file)
@@ -428,8 +428,9 @@ static void wait_for_console_key(void)
 }
 #endif
 
-/* called in creator.c even... tsk, split this! */
-/* note, doesnt run exit() call WM_exit() for that */
+/**
+ * \note doesn't run exit() call #WM_exit() for that.
+ */
 void WM_exit_ext(bContext *C, const bool do_python)
 {
        wmWindowManager *wm = C ? CTX_wm_manager(C) : NULL;
index 797db2dfda14bb8ad3b247ae52578ae9ca3686c3..01aff8557134457f709b107f4d1e747c571a3a96 100644 (file)
@@ -1785,11 +1785,11 @@ char **environ = NULL;
 #endif
 
 /**
- * Blender's main function responsabilities are:
+ * Blender's main function responsibilities are:
  * - setup subsystems.
  * - handle arguments.
- * - run WM_main() event loop,
- *   or exit when running in background mode.
+ * - run #WM_main() event loop,
+ *   or exit immediately when running in background mode.
  */
 int main(
         int argc,
@@ -2071,7 +2071,7 @@ int main(
 #endif
 
        if (G.background) {
-               /* actually incorrect, but works for now (ton) */
+               /* Using window-manager API in background mode is a bit odd, but works fine. */
                WM_exit(C);
        }
        else {