Start going through INLINE

This commit is contained in:
twinaphex 2015-03-15 04:30:46 +01:00
parent 1dbbe685cd
commit a333a629ca
2 changed files with 7 additions and 5 deletions

View File

@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <retro_inline.h>
#include <ctype.h>
#include <errno.h>
#include "general.h"
@ -481,7 +482,7 @@ static int16_t input_state(unsigned port, unsigned device,
*
* Poll pressed buttons/keys on currently active overlay.
**/
static inline void input_poll_overlay(input_overlay_t *overlay_device, float opacity)
static INLINE void input_poll_overlay(input_overlay_t *overlay_device, float opacity)
{
input_overlay_state_t old_key_state;
unsigned i, j, device;

View File

@ -17,6 +17,7 @@
*/
#include <file/file_path.h>
#include <retro_inline.h>
#include "dynamic.h"
#include "performance.h"
#include "retroarch_logger.h"
@ -121,7 +122,7 @@ static bool check_pause(bool pressed, bool frameadvance_pressed)
* Returns: true if libretro frame is one-shot, otherwise false..
*
**/
static inline bool check_is_oneshot(bool oneshot_pressed, bool rewind_pressed)
static INLINE bool check_is_oneshot(bool oneshot_pressed, bool rewind_pressed)
{
return (oneshot_pressed | rewind_pressed);
}
@ -183,7 +184,7 @@ static void check_stateslots(bool pressed_increase, bool pressed_decrease)
RARCH_LOG("%s\n", msg);
}
static inline void setup_rewind_audio(void)
static INLINE void setup_rewind_audio(void)
{
unsigned i;
@ -637,7 +638,7 @@ static int do_state_checks(
*
* Returns: 1 if any of the above conditions are true, otherwise 0.
**/
static inline int time_to_exit(retro_input_t input)
static INLINE int time_to_exit(retro_input_t input)
{
if (
g_extern.system.shutdown
@ -757,7 +758,7 @@ static bool check_block_hotkey(bool enable_hotkey)
*
* Returns: Input sample containg a mask of all pressed keys.
*/
static inline retro_input_t input_keys_pressed(void)
static INLINE retro_input_t input_keys_pressed(void)
{
unsigned i;
static const struct retro_keybind *binds[MAX_USERS] = {