mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-03-26 00:15:17 +00:00
Small format changed (using clang-format 15.0.2-1)
(cherry picked from commit 778b8926b4808f0642a331ed84a9e8e19899b6db)
This commit is contained in:
parent
b067ab9202
commit
09ee811f4b
|
@ -51,7 +51,6 @@ extern "C" {
|
||||||
#include "SDL_stdinc.h"
|
#include "SDL_stdinc.h"
|
||||||
#include "SDL_render.h"
|
#include "SDL_render.h"
|
||||||
#include "../../video/SDL_sysvideo.h"
|
#include "../../video/SDL_sysvideo.h"
|
||||||
//#include "../../SDL_hints_c.h"
|
|
||||||
#include "../../events/SDL_events_c.h"
|
#include "../../events/SDL_events_c.h"
|
||||||
#include "../../events/SDL_keyboard_c.h"
|
#include "../../events/SDL_keyboard_c.h"
|
||||||
#include "../../events/SDL_mouse_c.h"
|
#include "../../events/SDL_mouse_c.h"
|
||||||
|
|
|
@ -204,7 +204,10 @@ SDL_DYNAPI_VARARGS(static, _DEFAULT, SDL_InitDynamicAPI())
|
||||||
/* Public API functions to jump into the jump table. */
|
/* Public API functions to jump into the jump table. */
|
||||||
#if DISABLE_JUMP_MAGIC
|
#if DISABLE_JUMP_MAGIC
|
||||||
#define SDL_DYNAPI_PROC(rc, fn, params, args, ret) \
|
#define SDL_DYNAPI_PROC(rc, fn, params, args, ret) \
|
||||||
rc SDLCALL fn params { ret jump_table.fn args; }
|
rc SDLCALL fn params \
|
||||||
|
{ \
|
||||||
|
ret jump_table.fn args; \
|
||||||
|
}
|
||||||
#define SDL_DYNAPI_PROC_NO_VARARGS 1
|
#define SDL_DYNAPI_PROC_NO_VARARGS 1
|
||||||
#include "SDL_dynapi_procs.h"
|
#include "SDL_dynapi_procs.h"
|
||||||
#undef SDL_DYNAPI_PROC
|
#undef SDL_DYNAPI_PROC
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
#include "SDL_androidsensor.h"
|
#include "SDL_androidsensor.h"
|
||||||
#include "../SDL_syssensor.h"
|
#include "../SDL_syssensor.h"
|
||||||
#include "../SDL_sensor_c.h"
|
#include "../SDL_sensor_c.h"
|
||||||
//#include "../../core/android/SDL_android.h"
|
|
||||||
|
|
||||||
#ifndef LOOPER_ID_USER
|
#ifndef LOOPER_ID_USER
|
||||||
#define LOOPER_ID_USER 3
|
#define LOOPER_ID_USER 3
|
||||||
|
|
|
@ -84,9 +84,15 @@ GetL3CacheSize(void)
|
||||||
(vector unsigned short) ( a,b,c,d,e,f,g,h )
|
(vector unsigned short) ( a,b,c,d,e,f,g,h )
|
||||||
#else
|
#else
|
||||||
#define VECUINT8_LITERAL(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) \
|
#define VECUINT8_LITERAL(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) \
|
||||||
(vector unsigned char) { a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p }
|
(vector unsigned char) \
|
||||||
|
{ \
|
||||||
|
a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p \
|
||||||
|
}
|
||||||
#define VECUINT16_LITERAL(a, b, c, d, e, f, g, h) \
|
#define VECUINT16_LITERAL(a, b, c, d, e, f, g, h) \
|
||||||
(vector unsigned short) { a, b, c, d, e, f, g, h }
|
(vector unsigned short) \
|
||||||
|
{ \
|
||||||
|
a, b, c, d, e, f, g, h \
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define UNALIGNED_PTR(x) (((size_t)x) & 0x0000000F)
|
#define UNALIGNED_PTR(x) (((size_t)x) & 0x0000000F)
|
||||||
|
|
Loading…
Reference in a new issue