ReactOS
0.4.16-dev-319-g6cf4263
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
9
void
*
10
cmd_alloc_dbg(
size_t
size
,
const
char
*
file
,
int
line
);
11
12
void
*
13
cmd_realloc_dbg(
void
*
ptr
,
size_t
size
,
const
char
*
file
,
int
line
);
14
15
void
16
cmd_free_dbg(
void
*
ptr
,
const
char
*
file
,
int
line
);
17
18
TCHAR
*
19
cmd_dup_dbg(
const
TCHAR
*
str
,
const
char
*
file
,
int
line
);
20
21
void
22
cmd_checkbuffer_dbg(
void
*
ptr
,
const
char
*
file
,
int
line
);
23
24
void
25
cmd_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
cmd_exit
#define cmd_exit(code)
Definition:
cmddbg.h:34
size
GLsizeiptr size
Definition:
glext.h:5919
ptr
static PVOID ptr
Definition:
dispmode.c:27
str
const WCHAR * str
Definition:
rpc_transport.c:2724
code
Definition:
inflate.c:139
file
Definition:
fci.c:127
line
Definition:
parser.c:49
TCHAR
char TCHAR
Definition:
xmlstorage.h:189
base
shell
cmd
cmddbg.h
Generated on Wed Dec 4 2024 06:02:45 for ReactOS by
1.9.6