diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-02-18 09:13:46 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-02-18 09:13:46 +0100 |
| commit | daab8f61297289697e9affe36450e12c57f2b094 (patch) | |
| tree | da73e2ee95bdf697c6df65d61ff660f3a37bb9e0 /src/main.S | |
| parent | 4165404f85bf542d5f7a42d81b7288a91a72296d (diff) | |
| download | snake.s-daab8f61297289697e9affe36450e12c57f2b094.tar.xz snake.s-daab8f61297289697e9affe36450e12c57f2b094.zip | |
refactor: extract error function
Diffstat (limited to 'src/main.S')
| -rw-r--r-- | src/main.S | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -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 |
