view foo_out_sdl_wrapper.c @ 1:20d02a178406 default tip

*: check in everything else yay
author Paper <paper@tflc.us>
date Mon, 05 Jan 2026 02:15:46 -0500
parents e9bb126753e7
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"