Mercurial > foo_out_sdl
view 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 |
line wrap: on
line source
#include <stdint.h> typedef struct SDL_AudioStream SDL_AudioStream; typedef struct SDL_AudioSpec SDL_AudioSpec; typedef uint32_t SDL_AudioDeviceID; typedef uint32_t SDL_InitFlags; typedef void (__cdecl *SDL_AudioStreamCallback)(void *userdata, SDL_AudioStream *stream, int additional_amount, int total_amount); #define FUNC(type, x, params, callparams) \ __attribute__((ms_abi)) __cdecl extern \ type sdl3_##x params \ { \ type SDL_##x params; \ return SDL_##x callparams; \ } #include "foo_out_sdl_funcs.h"
