[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] [PATCH] Surface.set_at() on BIG ENDIAN machines
On Thu, 2006-01-12 at 15:17 +1100, Rene Dudfield wrote:
> 1* except I changed it to use the preprocessor to avoid the if at runtime.
>
> #if (SDL_BYTEORDER == SDL_LIL_ENDIAN)
Note that this is constant expression and any intelligent compiler will
generate no runtime overhead.
I don't like the preprocessor directives, because they could hide
uncompilable code.
--
Ivo Danihelka