mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
Turn retroarch_fail static
This commit is contained in:
parent
1e21bf5074
commit
9e5f00ba27
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user