Mercurial > sdl-ios-xcode
comparison test/automated/rwops/rwops.c @ 3482:78db4f7ae2f3
More fixes to compile under Visual C++
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 22 Nov 2009 07:00:26 +0000 |
parents | c32c53fca10d |
children | 947201caa46e |
comparison
equal
deleted
inserted
replaced
3481:c32c53fca10d | 3482:78db4f7ae2f3 |
---|---|
98 /* Test read. */ | 98 /* Test read. */ |
99 i = SDL_RWread( rw, buf, 1, sizeof(hello_world)-1 ); | 99 i = SDL_RWread( rw, buf, 1, sizeof(hello_world)-1 ); |
100 if (SDL_ATassert( "Reading with SDL_RWread", i == sizeof(hello_world)-1 )) | 100 if (SDL_ATassert( "Reading with SDL_RWread", i == sizeof(hello_world)-1 )) |
101 return 1; | 101 return 1; |
102 if (SDL_ATassert( "Memory read does not match memory written", | 102 if (SDL_ATassert( "Memory read does not match memory written", |
103 memcmp( buf, hello_world, sizeof(hello_world)-1 ) == 0 )) | 103 SDL_memcmp( buf, hello_world, sizeof(hello_world)-1 ) == 0 )) |
104 return 1; | 104 return 1; |
105 | 105 |
106 /* More seek tests. */ | 106 /* More seek tests. */ |
107 i = SDL_RWseek( rw, -4, RW_SEEK_CUR ); | 107 i = SDL_RWseek( rw, -4, RW_SEEK_CUR ); |
108 if (SDL_ATvassert( i == sizeof(hello_world)-5, | 108 if (SDL_ATvassert( i == sizeof(hello_world)-5, |