#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.
Macros |
| #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 |
Macro Definition Documentation
| #define DISABLE_JUMP_MAGIC 1 |
| #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 |
|
) |
| fn##_DEFAULT, |
| #define SDL_DYNAPI_PROC |
( |
|
rc, |
|
|
|
fn, |
|
|
|
params, |
|
|
|
args, |
|
|
|
ret |
|
) |
| |
Value:
SDL_InitDynamicAPI(); \
}
Definition at line 159 of file SDL_dynapi.c.
| #define SDL_DYNAPI_PROC |
( |
|
rc, |
|
|
|
fn, |
|
|
|
params, |
|
|
|
args, |
|
|
|
ret |
|
) |
| rc SDLCALL fn params { ret jump_table.fn args; } |
| #define SDL_DYNAPI_PROC |
( |
|
rc, |
|
|
|
fn, |
|
|
|
params, |
|
|
|
args, |
|
|
|
ret |
|
) |
| jump_table.fn = fn##_REAL; |
| #define SDL_DYNAPI_PROC_NO_VARARGS 1 |
| #define SDL_DYNAPI_PROC_NO_VARARGS 1 |
| #define SDL_DYNAPI_VARARGS |
( |
|
_static, |
|
|
|
name, |
|
|
|
initcall |
|
) |
| |
| #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); \
}
Definition at line 65 of file SDL_dynapi.c.
| #define SDL_DYNAPI_VERSION 1 |
| #define WIN32_LEAN_AND_MEAN 1 |
Typedef Documentation
Function Documentation
| static SDL_INLINE void* get_sdlapi_entry |
( |
const char * |
fname, |
|
|
const char * |
sym |
|
) |
| |
|
static |
Definition at line 220 of file SDL_dynapi.c.
{
HANDLE lib = LoadLibraryA(fname);
if (lib) {
retval = GetProcAddress(lib, sym);
FreeLibrary(lib);
}
}
}
Definition at line 174 of file SDL_dynapi.c.
{
return -1;
return -1;
}
#define SDL_DYNAPI_PROC(rc,fn,params,args,ret) jump_table.fn = fn##_REAL;
#undef SDL_DYNAPI_PROC
}
return 0;
}
Definition at line 297 of file SDL_dynapi.c.
{
#if !SDL_ATOMIC_DISABLED
SDL_AtomicLock_REAL(&lock);
#endif
if (!already_initialized) {
}
#if !SDL_ATOMIC_DISABLED
SDL_AtomicUnlock_REAL(&lock);
#endif
}
| static void SDL_InitDynamicAPILocked |
( |
void |
| ) |
|
|
static |
Definition at line 268 of file SDL_dynapi.c.
{
const char *libname = SDL_getenv_REAL("SDL_DYNAMIC_API");
if (libname) {
if (!entry) {
}
}
if (!entry) {
}
}
}
}
Variable Documentation