Mercurial > sdl-ios-xcode
view test/automated/platform/platform.h @ 3498:a4ce84c4f211
Fixed crash - need to save and restore rbx around cpuid, since the compiler may be assuming the stack pointer isn't being modified when filling in %0.
I did it around each call to cpuid which isn't strictly necessary, but is definitely future proof. :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 30 Nov 2009 19:52:34 +0000 |
parents | 22ac66da0765 |
children | 0c429a5fda8a |
line wrap: on
line source
/** * Part of SDL test suite. * * Written by Edgar Simo "bobbens" * * Released under Public Domain. */ #ifndef _TEST_PLATFORM # define _TEST_PLATFORM const char *platform_getPlatform (void); int test_platform (void); #endif /* _TEST_PLATFORM */