input30

Undocumented in source.
immutable
auto input30 = q{--- test30 void SDL_SetMainReady(); i32 SDL_Init(u32); void SDL_Quit(); void* SDL_CreateWindow(u8* title, i32 x, i32 y, i32 w, i32 h, u32 flags); void* SDL_CreateRenderer(void* window, i32 index, u32 flags); void SDL_DestroyRenderer(void* renderer); void SDL_DestroyWindow(void* renderer); i32 SDL_PollEvent(SDL_Event* event); struct SDL_Event { u32 type; u8[52] padding; } void ExitProcess(u32 uExitCode); i32 main(void* hInstance, void* hPrevInstance, u8* lpCmdLine, i32 nShowCmd) { SDL_SetMainReady(); if(SDL_Init(0x00000020) < 0) return 1; void* window = SDL_CreateWindow("SDL test via tiny_jit", 0x1FFF0000, 0x1FFF0000, 300, 100, 4); void* renderer = SDL_CreateRenderer(window, 0xFFFF_FFFF, 2); SDL_Event e; while (1) { SDL_PollEvent(&e); if (e.type == 0x100) // SDL_QUIT break; } SDL_DestroyRenderer(renderer); SDL_DestroyWindow(window); SDL_Quit(); ExitProcess(0); return 0; } };

Meta