Mercurial > foo_out_sdl
comparison foo_out_sdl_wrapper.c @ 0:e9bb126753e7
*: initial commit
totally untested besides the wrapper; need to get msvc running
| author | Paper <paper@tflc.us> |
|---|---|
| date | Sat, 03 Jan 2026 23:52:56 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:e9bb126753e7 |
|---|---|
| 1 #include <stdint.h> | |
| 2 | |
| 3 typedef struct SDL_AudioStream SDL_AudioStream; | |
| 4 typedef struct SDL_AudioSpec SDL_AudioSpec; | |
| 5 typedef uint32_t SDL_AudioDeviceID; | |
| 6 typedef uint32_t SDL_InitFlags; | |
| 7 typedef void (__cdecl *SDL_AudioStreamCallback)(void *userdata, SDL_AudioStream *stream, int additional_amount, int total_amount); | |
| 8 | |
| 9 #define FUNC(type, x, params, callparams) \ | |
| 10 __attribute__((ms_abi)) __cdecl extern \ | |
| 11 type sdl3_##x params \ | |
| 12 { \ | |
| 13 type SDL_##x params; \ | |
| 14 return SDL_##x callparams; \ | |
| 15 } | |
| 16 #include "foo_out_sdl_funcs.h" |
