Commit e2192b74 authored by Matthias Braun's avatar Matthias Braun
Browse files

make fehler39 work with gcc at least

[r15018]
parent 9f54772e
typedef signed short INT16;
typedef signed int INT32;
/* register allocator fails to resolve IMul Constraints correctly */
#ifdef __GNUC__
#define NO_INLINE __attribute__((noinline))
#else
#define NO_INLINE __declspec(noinline)
#endif
int LightSpriteCreate()
{
return 42;
}
void LightSpritePosition(int x, int y, int z)
{
(void) x;
(void) y;
(void) z;
}
typedef struct
{
INT16 sX;
INT16 sY;
INT32 iLightID;
short sX;
short sY;
int iLightID;
} EXPLOSIONTYPE;
static void GenerateExplosionFromExplosionPointer(EXPLOSIONTYPE* pExplosion)
{
INT16 sX = pExplosion->sX;
INT16 sY = pExplosion->sY;
short sX = pExplosion->sX;
short sY = pExplosion->sY;
if (pExplosion->iLightID = LightSpriteCreate())
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment