Commit 9585f2c
docs: update Codes/README.md — document
* docs: update Codes/README.md to document _DEBUG guard usage
The repo's .vscode/tasks.json passes -D_DEBUG in both g++ (Windows)
and clang++ (macOS) build tasks, and c_cpp_properties.json also
defines _DEBUG for IntelliSense on both platforms.
Update the README to document this cross-platform _DEBUG guard as
the recommended approach alongside the existing _WIN32 example.
Ref: #1516 (review comment r3106352313)
* docs: simplify — just replace _WIN32 with _DEBUG and note its origin
Revert the previous over-engineered change. Keep it minimal:
- Replace #ifdef _WIN32 with #ifdef _DEBUG
- Add one line explaining where _DEBUG is defined
* docs: minimal update — use _DEBUG guard and note its origin
Replace _WIN32 with _DEBUG in both code examples, add one-line
explanation of where _DEBUG is defined. No other structural changes.
* fix: restore original text, only change _WIN32→_DEBUG and intro line
Address review: revert all unintended changes (Chinese quote escaping,
trailing newline, structural changes). Only 3 lines differ from master:
- Line 50: intro text updated to mention _DEBUG origin
- Line 53: #ifdef _WIN32 → #ifdef _DEBUG
- Line 63: #ifdef _WIN32 → #ifdef _DEBUG
* docs: _DEBUG by hand
Update README.md
* fix: 虽然最好有个空格,但是得到准许前还是不修改比较好
Update README.md
* docs: rust->Rust
* docs: 加个结尾句号
Update Codes/README.md
---------
Co-authored-by: gh-pr-review[bot] <268385713+gh-pr-review[bot]@users.noreply.github.com>
Co-authored-by: gh-pr-review <github-gh-pr-review@cmail.letmefly.xyz>_DEBUG guard as recommended approach (#1517)1 parent c3797c6 commit 9585f2c
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
63 | | - | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
| 81 | + | |
0 commit comments