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

#ifndef __STDC_VERSION__

.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

#endif