1 #ifndef INCLUDED_FirstUiBuilder_H
2 #define INCLUDED_FirstUiBuilder_H
4 #include "_precompile.h"
10 typedef signed char int8
;
11 typedef signed short int16
;
12 typedef signed int int32
;
13 typedef unsigned char uint8
;
14 typedef unsigned short uint16
;
15 typedef unsigned int uint32
;
18 typedef unsigned int uint
;
21 #define isizeof(a) static_cast<int>(sizeof(a))
22 #define istrlen(a) static_cast<int>(strlen(a))
23 #define UNREF(a) static_cast<void>(a)
24 #define FATAL(a, b) assert(!(a))
25 #define DEBUG_FATAL(a, b) FATAL(a, b)
26 #define NOT_NULL(a) assert((a) != NULL)
27 #define MEM_OWN(a) (a)
28 #define NOP static_cast<void>(0)
30 inline char *DuplicateString(const char *string
)
35 const int length
= strlen(string
) + 1;
36 char *result
= new char[length
];
37 strcpy(result
, string
);
41 //#pragma warning(disable: 4702)