equal
deleted
inserted
replaced
|
1 #include <stdio.h> |
1 #include "SDL.h" |
2 #include "SDL.h" |
2 |
3 |
3 /* Make sure we have good macros for printing 32 and 64 bit values */ |
4 /* Make sure we have good macros for printing 32 and 64 bit values */ |
4 #ifndef PRIu32 |
5 #ifndef PRIu32 |
5 #define PRIu32 "u" |
6 #define PRIu32 "u" |
15 /* |
16 /* |
16 Absolutely basic tests just to see if we get the expected value |
17 Absolutely basic tests just to see if we get the expected value |
17 after calling each function. |
18 after calling each function. |
18 */ |
19 */ |
19 |
20 |
20 char * |
21 char * |
21 tf(SDL_bool tf) |
22 tf(SDL_bool tf) |
22 { |
23 { |
23 static char *t = "true"; |
24 static char *t = "true"; |
24 static char *f = "false"; |
25 static char *f = "false"; |
25 |
26 |
28 return t; |
29 return t; |
29 } |
30 } |
30 |
31 |
31 return f; |
32 return f; |
32 } |
33 } |
33 |
34 |
34 int |
35 int |
35 main(int argc, char *argv[]) |
36 main(int argc, char *argv[]) |
36 { |
37 { |
37 |
38 |
38 volatile Uint32 val32 = 0; |
39 volatile Uint32 val32 = 0; |