From daab8f61297289697e9affe36450e12c57f2b094 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 18 Feb 2026 09:13:46 +0100 Subject: refactor: extract error function --- src/main.S | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/main.S') diff --git a/src/main.S b/src/main.S index 50e894d..11b02e3 100644 --- a/src/main.S +++ b/src/main.S @@ -16,22 +16,6 @@ .section .text - //! @function _print_sdl_error(char const * format) - function_begin _print_sdl_error - - push %rdi - sub $8, %rsp - - call SDL_GetError@PLT - mov %rax, %rsi - - add $8, %rsp - pop %rdi - - call printf@PLT - - function_end - function_begin main define_local window_handle, 8 @@ -75,7 +59,6 @@ call SDL_Quit@PLT - .Lsuccess: lea greeting(%rip), %rdi xor %rax, %rax call printf@PLT -- cgit v1.2.3