helperMacro.h

00001 #if !defined(_WINDEF_) && !defined(HELPERMACROS_H)
00002 #define MAKEWORD(a, b)      ((word)(((byte)(((dword)(a)) & 0xff)) | ((word)((byte)(((dword)(b)) & 0xff))) << 8))
00003 #define LOBYTE(w)           ((byte)(((dword)(w)) & 0xff))
00004 #define HIBYTE(w)           ((byte)((((dword)(w)) >> 8) & 0xff))
00005 #endif
00006 #ifndef HELPERMACROS_H
00007 #define HELPERMACROS_H
00008 #define LENOF(a) (sizeof(a)/sizeof(*(a)))
00009 #define MAKEVECTOR(a) ByteVec(a,a + LENOF(a) )
00010 #endif

Generated on Fri Oct 31 12:29:36 2008 for Cardlib reference by  doxygen 1.5.1