Mercurial > sdl-ios-xcode
comparison test/testatomic.c @ 3216:48a80f2a7ff2
volitile... duh, yeah the variable need to be labeled volitile
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Thu, 09 Jul 2009 21:31:27 +0000 |
parents | 3aa519a5c676 |
children | 916f396fe65d |
comparison
equal
deleted
inserted
replaced
3215:b425c3e2b796 | 3216:48a80f2a7ff2 |
---|---|
21 | 21 |
22 int | 22 int |
23 main(int argc, char **argv) | 23 main(int argc, char **argv) |
24 { | 24 { |
25 | 25 |
26 Uint8 val8 = 0; | 26 volatile Uint8 val8 = 0; |
27 Uint8 ret8 = 0; | 27 Uint8 ret8 = 0; |
28 | 28 |
29 Uint16 val16 = 0; | 29 volatile Uint16 val16 = 0; |
30 Uint16 ret16 = 0; | 30 Uint16 ret16 = 0; |
31 | 31 |
32 Uint32 val32 = 0; | 32 volatile Uint32 val32 = 0; |
33 Uint32 ret32 = 0; | 33 Uint32 ret32 = 0; |
34 | 34 |
35 Uint64 val64 = 0; | 35 volatile Uint64 val64 = 0; |
36 Uint64 ret64 = 0; | 36 Uint64 ret64 = 0; |
37 | 37 |
38 SDL_bool tfret = SDL_FALSE; | 38 SDL_bool tfret = SDL_FALSE; |
39 | 39 |
40 | 40 |