aboutsummaryrefslogtreecommitdiff
path: root/src/error.S
blob: af441ce53bd6c5389ced7ddc947d68b53a9f4fc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "helpers/function.S"

.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