-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSDL_endian.fth
28 lines (24 loc) · 1.02 KB
/
SDL_endian.fth
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
\ This file has been generated using SWIG and fsi,
\ and is already platform dependent, search for the corresponding
\ fsi-file to compile it where no one has compiled it before ;)
\ Forth systems have their own own dynamic loader and don't need addional C-Code.
\ That's why this file will just print normal forth-code once compiled
\ and can be used directly with include or require.
\ As all comments are stripped during the compilation, please
\ insert the copyright notice of the original file here.
\ ----===< prefix >===-----
c-library sdl_endian
s" SDL2" add-lib
\c #include <SDL2/SDL_endian.h>
\ ----===< int constants >===-----
#1234 constant SDL_LIL_ENDIAN
#4321 constant SDL_BIG_ENDIAN
#1234 constant SDL_BYTEORDER
#1234 constant SDL_FLOATWORDORDER
\ ------===< functions >===-------
c-function SDL_Swap16 SDL_Swap16 n -- n ( x -- )
c-function SDL_Swap32 SDL_Swap32 n -- n ( x -- )
c-function SDL_Swap64 SDL_Swap64 n -- n ( x -- )
c-function SDL_SwapFloat SDL_SwapFloat r -- r ( x -- )
\ ----===< postfix >===-----
end-c-library