ReactOS
0.4.16-dev-1946-g52006dd
debug_fill_threshold.cpp
Go to the documentation of this file.
1
//
2
// debug_fill_threshold.cpp
3
//
4
// Copyright (c) Microsoft Corporation. All rights reserved.
5
//
6
// Functions to control the debug fill threshold used by the secure string
7
// functions. A threshold of 0 disables filling; a threshold of SIZE_MAX
8
// means to always fill to the maximum.
9
//
10
#include <
corecrt_internal.h
>
11
#include <stdint.h>
12
13
14
15
static
size_t
__acrt_debug_fill_threshold
=
SIZE_MAX
;
16
17
18
19
extern
"C"
size_t
__cdecl
_CrtSetDebugFillThreshold
(
size_t
const
new_threshold)
20
{
21
size_t
const
old_threshold{
__acrt_debug_fill_threshold
};
22
__acrt_debug_fill_threshold
= new_threshold;
23
return
old_threshold;
24
}
25
26
extern
"C"
size_t
__cdecl
_CrtGetDebugFillThreshold
()
27
{
28
return
__acrt_debug_fill_threshold
;
29
}
__cdecl
#define __cdecl
Definition:
accygwin.h:79
corecrt_internal.h
_CrtSetDebugFillThreshold
#define _CrtSetDebugFillThreshold(t)
Definition:
crtdbg.h:259
__acrt_debug_fill_threshold
static size_t __acrt_debug_fill_threshold
Definition:
debug_fill_threshold.cpp:15
_CrtGetDebugFillThreshold
size_t __cdecl _CrtGetDebugFillThreshold()
Definition:
debug_fill_threshold.cpp:26
SIZE_MAX
#define SIZE_MAX
Definition:
compat.h:66
sdk
lib
ucrt
misc
debug_fill_threshold.cpp
Generated on Thu Dec 4 2025 06:16:21 for ReactOS by
1.9.6