Refactor around HAVE_MAIN and do away with HAVE_MAIN_LOOP

This commit is contained in:
twinaphex 2015-04-20 21:12:39 +02:00
parent 5d24c75925
commit 4e187ad642
2 changed files with 3 additions and 7 deletions

View File

@ -32,10 +32,6 @@
#define args_initial_ptr() NULL
#endif
#if !defined(__APPLE__) && !defined(EMSCRIPTEN)
#define HAVE_MAIN_LOOP
#endif
#define MAX_ARGS 32
/**
@ -274,7 +270,7 @@ error:
*
* Main function of RetroArch.
*
* If HAVE_MAIN_LOOP is defined, will contain main loop and will not
* If HAVE_MAIN is not defined, will contain main loop and will not
* be exited from until we exit the program. Otherwise, will
* just do initialization.
*
@ -344,7 +340,7 @@ int rarch_main(int argc, char *argv[])
driver->ui_companion->toggle(driver->ui_companion_data);
}
#if defined(HAVE_MAIN_LOOP)
#ifndef HAVE_MAIN
while (rarch_main_iterate() != -1);
main_exit(args);

View File

@ -53,7 +53,7 @@ void main_exit_save_config(void);
*
* Main function of RetroArch.
*
* If HAVE_MAIN_LOOP is defined, will contain main loop and will not
* If HAVE_MAIN is not defined, will contain main loop and will not
* be exited from until we exit the program. Otherwise, will
* just do initialization.
*