Turn retroarch_fail static

This commit is contained in:
twinaphex 2020-05-20 04:43:35 +02:00
parent 1e21bf5074
commit 9e5f00ba27
3 changed files with 2 additions and 13 deletions

View File

@ -2771,10 +2771,7 @@ bool menu_driver_ctl(enum rarch_menu_ctl_state state, void *data)
menu_driver_find_handle(0);
if (!menu_driver_ctx)
{
retroarch_fail(1, "find_menu_driver()");
return false;
}
}
}
break;

View File

@ -2038,6 +2038,7 @@ static int g_ai_service_auto = 0;
static unsigned gamepad_input_override = 0;
/* Forward declarations */
static void retroarch_fail(int error_code, const char *error);
static void retroarch_core_options_intl_init(const struct
retro_core_options_intl *core_options_intl);
static void ui_companion_driver_toggle(bool force);
@ -27579,7 +27580,7 @@ void retroarch_set_current_core_type(enum rarch_core_type type, bool explicitly_
*
* Sanely kills the program.
**/
void retroarch_fail(int error_code, const char *error)
static void retroarch_fail(int error_code, const char *error)
{
/* We cannot longjmp unless we're in retroarch_main_init().
* If not, something went very wrong, and we should

View File

@ -313,15 +313,6 @@ const char* retroarch_get_shader_preset(void);
bool retroarch_is_switching_display_mode(void);
/**
* retroarch_fail:
* @error_code : Error code.
* @error : Error message to show.
*
* Sanely kills the program.
**/
void retroarch_fail(int error_code, const char *error);
/**
* retroarch_main_init:
* @argc : Count of (commandline) arguments.