mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Add countof macro for arrays
This commit is contained in:
parent
b40c7b6ec4
commit
148b11bd33
@ -34,6 +34,12 @@ typedef Sint32 LPARAM;
|
||||
#define LOWORD(l) ((Uint16) (((Uint32) (l)) & 0xffff))
|
||||
#define HIWORD(l) ((Uint16) ((((Uint32) (l)) >> 16) & 0xffff))
|
||||
|
||||
#ifdef _WIN32
|
||||
#define countof(a) _countof (a)
|
||||
#else /* _WIN32 */
|
||||
#define countof(a) (sizeof (a) / sizeof (*a))
|
||||
#endif /* !_WIN32 */
|
||||
|
||||
#define MAX_PATH 260
|
||||
|
||||
#define VK_END 0x23
|
||||
|
Loading…
x
Reference in New Issue
Block a user