diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/foo_out_sdl_wrapper.c	Sat Jan 03 23:52:56 2026 -0500
@@ -0,0 +1,16 @@
+#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"