dsrc isn't necessary for this repo
[client-tools.git] / src / external / 3rd / application / UiBuilder / FirstUiBuilder.h
blob4e6b747ffa731c3dd1b0726e744214cde67c2de7
1 #ifndef INCLUDED_FirstUiBuilder_H
2 #define INCLUDED_FirstUiBuilder_H
4 #include "_precompile.h"
6 #include <afxres.h>
7 #include <assert.h>
8 #include <windows.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;
17 typedef uint8 byte;
18 typedef unsigned int uint;
19 typedef float real;
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)
32 if (!string)
33 return NULL;
35 const int length = strlen(string) + 1;
36 char *result = new char[length];
37 strcpy(result, string);
38 return result;
41 //#pragma warning(disable: 4702)
43 #endif