Re: [AD] datafile.c bugfix |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
> I don't know what implementation of the macros you had in mind, but I'm > convinced there has to be some:-) What about: > #define READ3BYTES(x) ((x)[0]+((x)[1]<<8)+((x)[2]<<16)) > #define WRITE3BYTES(x, y) (x)[0]=y, (x)[1]=(y)>>8, (x)[2]=(y)>>16 !??? Both macros are defined in include/allegro/internal/alconfig.h on trunk and branch. -- Eric Botcazou
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |