#include "SDL_config.h"
#include "SDL_dynapi.h"
#include "SDL.h"
#include "SDL_syswm.h"
#include "SDL_vulkan.h"
#include "SDL_dynapi_procs.h"
#include <windows.h>
Go to the source code of this file.
|
#define | SDL_DYNAPI_VERSION 1 |
|
#define | DISABLE_JUMP_MAGIC 1 |
|
#define | SDL_DYNAPI_VARARGS_LOGFN(_static, name, initcall, logname, prio) |
|
#define | SDL_DYNAPI_VARARGS(_static, name, initcall) |
|
#define | SDL_DYNAPI_PROC(rc, fn, params, args, ret) |
|
#define | SDL_DYNAPI_PROC(rc, fn, params, args, ret) SDL_DYNAPIFN_##fn fn; |
|
#define | SDL_DYNAPI_PROC(rc, fn, params, args, ret) static rc SDLCALL fn##_DEFAULT params; |
|
#define | SDL_DYNAPI_PROC(rc, fn, params, args, ret) fn##_DEFAULT, |
|
#define | SDL_DYNAPI_PROC(rc, fn, params, args, ret) |
|
#define | SDL_DYNAPI_PROC_NO_VARARGS 1 |
|
#define | SDL_DYNAPI_PROC(rc, fn, params, args, ret) rc SDLCALL fn params { ret jump_table.fn args; } |
|
#define | SDL_DYNAPI_PROC_NO_VARARGS 1 |
|
#define | SDL_DYNAPI_PROC(rc, fn, params, args, ret) jump_table.fn = fn##_REAL; |
|
#define | WIN32_LEAN_AND_MEAN 1 |
|
◆ DISABLE_JUMP_MAGIC
#define DISABLE_JUMP_MAGIC 1 |
◆ SDL_DYNAPI_PROC [1/7]
#define SDL_DYNAPI_PROC |
( |
|
rc, |
|
|
|
fn, |
|
|
|
params, |
|
|
|
args, |
|
|
|
ret |
|
) |
| |
◆ SDL_DYNAPI_PROC [2/7]
#define SDL_DYNAPI_PROC |
( |
|
rc, |
|
|
|
fn, |
|
|
|
params, |
|
|
|
args, |
|
|
|
ret |
|
) |
| SDL_DYNAPIFN_##fn fn; |
◆ SDL_DYNAPI_PROC [3/7]
◆ SDL_DYNAPI_PROC [4/7]
#define SDL_DYNAPI_PROC |
( |
|
rc, |
|
|
|
fn, |
|
|
|
params, |
|
|
|
args, |
|
|
|
ret |
|
) |
| fn##_DEFAULT, |
◆ SDL_DYNAPI_PROC [5/7]
#define SDL_DYNAPI_PROC |
( |
|
rc, |
|
|
|
fn, |
|
|
|
params, |
|
|
|
args, |
|
|
|
ret |
|
) |
| |
Value: SDL_InitDynamicAPI(); \
}
static SDL_DYNAPI_jump_table jump_table
Definition at line 158 of file SDL_dynapi.c.
◆ SDL_DYNAPI_PROC [6/7]
#define SDL_DYNAPI_PROC |
( |
|
rc, |
|
|
|
fn, |
|
|
|
params, |
|
|
|
args, |
|
|
|
ret |
|
) |
| rc SDLCALL fn params { ret jump_table.fn args; } |
◆ SDL_DYNAPI_PROC [7/7]
#define SDL_DYNAPI_PROC |
( |
|
rc, |
|
|
|
fn, |
|
|
|
params, |
|
|
|
args, |
|
|
|
ret |
|
) |
| jump_table.fn = fn##_REAL; |
◆ SDL_DYNAPI_PROC_NO_VARARGS [1/2]
#define SDL_DYNAPI_PROC_NO_VARARGS 1 |
◆ SDL_DYNAPI_PROC_NO_VARARGS [2/2]
#define SDL_DYNAPI_PROC_NO_VARARGS 1 |
◆ SDL_DYNAPI_VARARGS
#define SDL_DYNAPI_VARARGS |
( |
|
_static, |
|
|
|
name, |
|
|
|
initcall |
|
) |
| |
◆ SDL_DYNAPI_VARARGS_LOGFN
#define SDL_DYNAPI_VARARGS_LOGFN |
( |
|
_static, |
|
|
|
name, |
|
|
|
initcall, |
|
|
|
logname, |
|
|
|
prio |
|
) |
| |
Value: va_list ap; initcall; va_start(ap, fmt); \
jump_table.SDL_LogMessageV(category, SDL_LOG_PRIORITY_##prio, fmt, ap); \
va_end(ap); \
}
GLuint const GLchar * name
#define SDL_PRINTF_FORMAT_STRING
Definition at line 64 of file SDL_dynapi.c.
◆ SDL_DYNAPI_VERSION
#define SDL_DYNAPI_VERSION 1 |
◆ WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1 |
◆ SDL_DYNAPI_ENTRYFN
◆ get_sdlapi_entry()
static SDL_INLINE void* get_sdlapi_entry |
( |
const char * |
fname, |
|
|
const char * |
sym |
|
) |
| |
|
static |
Definition at line 212 of file SDL_dynapi.c.
214 HANDLE lib = LoadLibraryA(fname);
217 retval = GetProcAddress(lib, sym);
218 if (retval ==
NULL) {
◆ SDL_DYNAPI_entry()
Definition at line 178 of file SDL_dynapi.c.
190 #define SDL_DYNAPI_PROC(rc,fn,params,args,ret) jump_table.fn = fn##_REAL; 192 #undef SDL_DYNAPI_PROC GLenum GLsizei GLenum GLenum const void * table
#define SDL_DYNAPI_VERSION
static SDL_DYNAPI_jump_table jump_table
◆ SDL_InitDynamicAPI()
Definition at line 290 of file SDL_dynapi.c.
308 #if !SDL_ATOMIC_DISABLED 310 SDL_AtomicLock_REAL(&lock);
313 if (!already_initialized) {
318 #if !SDL_ATOMIC_DISABLED 319 SDL_AtomicUnlock_REAL(&lock);
static void SDL_InitDynamicAPILocked(void)
◆ SDL_InitDynamicAPILocked()
static void SDL_InitDynamicAPILocked |
( |
void |
| ) |
|
|
static |
Definition at line 260 of file SDL_dynapi.c.
262 const char *libname = SDL_getenv_REAL(
"SDL_DYNAMIC_API");
static SDL_INLINE void * get_sdlapi_entry(const char *fname, const char *sym)
Sint32(* SDL_DYNAPI_ENTRYFN)(Uint32 apiver, void *table, Uint32 tablesize)
#define SDL_DYNAPI_VERSION
static SDL_DYNAPI_jump_table jump_table
Sint32 SDL_DYNAPI_entry(Uint32, void *, Uint32)
◆ jump_table