}
#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;
#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,
#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 {