BWAPI
trunk/bwapi/Util/Source/Util/Types.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 typedef unsigned char      u8;
00004 typedef   signed char      s8;
00005 typedef unsigned short     u16;
00006 typedef   signed short     s16;
00007 typedef unsigned int       u32;
00008 typedef   signed int       s32;
00009 typedef unsigned long long u64;
00010 typedef   signed long long s64;
00011 typedef unsigned int       uint;
00012 
00013 typedef u8              _UNKNOWN;
00014 
00015 typedef unsigned char   BYTE;
00016 typedef unsigned short  WORD;
00017 typedef unsigned long   DWORD;
00018 typedef void*           PVOID;
00019 typedef int             BOOL;
00020 typedef void*           HANDLE;
00021 
00022 typedef struct __rect
00023 {
00024   s16 left;
00025   s16 top;
00026   s16 right;
00027   s16 bottom;
00028 } rect;
00029 
00030 #ifdef NULL
00031 #undef NULL
00032 #endif
00033 #define NULL 0
00034 
00035 #define ever (;;)
00036 
00037 #include <cstdio>
00038 #define vstretchyprintf(buff,fmt) {\
00039   va_list ap;\
00040   va_start(ap, fmt);\
00041   int buffsize = _vscprintf(fmt, ap);\
00042   buff = (char*)malloc(buffsize+1);\
00043   vsprintf(buff, fmt, ap);\
00044   va_end(ap);\
00045 }
00046 
00047 #define MB_ICONINFO MB_ICONASTERISK
00048 
00049 #define MemZero(x) memset(&x, 0, sizeof(x))
00050 
00051 template <bool> struct _CTASSERT;
00052 template <> struct _CTASSERT<true> {};
00053 #define CTASSERT(x) extern const _CTASSERT< (bool)(x) > IUsedToStaticAssert_ThenITookAnArrowInTheKnee
00054 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines