Skip to content

Commit 853bf88

Browse files
committed
edit
1 parent 24d1c10 commit 853bf88

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/preprocessor/check-stack.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Instructs the compiler to turn off stack probes if **`off`** (or **`-`**) is spe
1212

1313
## Syntax
1414

15-
> **`#pragma check_stack(`** [{ **`on`** | **`off`** }] **`)`**\
15+
> **`#pragma check_stack(`** { **`on`** | **`off`** } **`)`**\
1616
> **`#pragma check_stack`** { **`+`** | **`-`** }
1717
1818
## Remarks
@@ -23,10 +23,12 @@ This pragma takes effect at the first function defined after the pragma is seen.
2323

2424
`#pragma check_stack(off)` / `#pragma Check_stack-` is ignored if the size of the function locals is larger than 4096 or the value specified by `/Gs`.
2525

26-
The default behavior on is to insert stack probes at the beginning of each function if the size of the locals exceeds 4096 (or the value specified by `/Gs`) to ensure that the stack is large enough to accommodate the function's requirements.
26+
The default behavior of the compiler is to insert stack probes at the beginning of each function if the size of the locals exceeds 4096 or the value specified by `/Gs`.
2727

2828
Use [/Gs (Control stack checking calls)](../build/reference/gs-control-stack-checking-calls.md) to change the threshold of the locals that trigger stack probes. Use with caution.
2929

30+
Using `#pragma check_stack()` without arguments is deprecated.
31+
3032
## See also
3133

3234
[Compiler options](../build/reference/compiler-options.md)\

0 commit comments

Comments
 (0)