Mercurial > sdl-ios-xcode
comparison test/testtimer.c @ 1615:d5298e8f22b3
Ugh, more 64-bit cleanup
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 31 Mar 2006 06:27:47 +0000 |
parents | f58c88a4dff5 |
children | 14717b52abc0 |
comparison
equal
deleted
inserted
replaced
1614:6162b8d921ce | 1615:d5298e8f22b3 |
---|---|
10 | 10 |
11 #define DEFAULT_RESOLUTION 1 | 11 #define DEFAULT_RESOLUTION 1 |
12 | 12 |
13 static int ticks = 0; | 13 static int ticks = 0; |
14 | 14 |
15 /* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */ | |
16 static void quit(int rc) | |
17 { | |
18 SDL_Quit(); | |
19 exit(rc); | |
20 } | |
21 | |
22 static Uint32 ticktock(Uint32 interval) | 15 static Uint32 ticktock(Uint32 interval) |
23 { | 16 { |
24 ++ticks; | 17 ++ticks; |
25 return(interval); | 18 return(interval); |
26 } | 19 } |
27 | 20 |
28 static Uint32 callback(Uint32 interval, void *param) | 21 static Uint32 callback(Uint32 interval, void *param) |
29 { | 22 { |
30 printf("Timer %d : param = %d\n", interval, (uintptr_t)param); | 23 printf("Timer %d : param = %d\n", interval, (int)(uintptr_t)param); |
31 return interval; | 24 return interval; |
32 } | 25 } |
33 | 26 |
34 int main(int argc, char *argv[]) | 27 int main(int argc, char *argv[]) |
35 { | 28 { |