ReactOS 0.4.15-dev-7674-gc0b4db1
cmddbg.h
Go to the documentation of this file.
1#ifdef _DEBUG_MEM
2
3#define cmd_alloc(size) cmd_alloc_dbg(size, __FILE__, __LINE__)
4#define cmd_realloc(ptr,size) cmd_realloc_dbg(ptr, size, __FILE__, __LINE__)
5#define cmd_free(ptr) cmd_free_dbg(ptr, __FILE__, __LINE__)
6#define cmd_checkbuffer(ptr) cmd_checkbuffer_dbg(ptr, __FILE__, __LINE__)
7#define cmd_dup(str) cmd_dup_dbg(str, __FILE__, __LINE__)
8
9void *
10cmd_alloc_dbg(size_t size, const char *file, int line);
11
12void *
13cmd_realloc_dbg(void *ptr, size_t size, const char *file, int line);
14
15void
16cmd_free_dbg(void *ptr, const char *file, int line);
17
18TCHAR *
19cmd_dup_dbg(const TCHAR *str, const char *file, int line);
20
21void
22cmd_checkbuffer_dbg(void *ptr, const char *file, int line);
23
24void
25cmd_exit(int code);
26
27#else
28
29#define cmd_alloc(size) malloc(size)
30#define cmd_realloc(ptr,size) realloc(ptr, size)
31#define cmd_free(ptr) free(ptr)
32#define cmd_dup(str) _tcsdup(str)
33#define cmd_checkbuffer(ptr)
34#define cmd_exit(code) ExitProcess(code)
35
36#endif
#define cmd_exit(code)
Definition: cmddbg.h:34
GLsizeiptr size
Definition: glext.h:5919
static PVOID ptr
Definition: dispmode.c:27
const WCHAR * str
Definition: inflate.c:139
Definition: fci.c:127
Definition: parser.c:49
char TCHAR
Definition: xmlstorage.h:189