Skip to content

Commit 0e192a5

Browse files
Fix formatting issues with __VA_OPT__.
1 parent bbc4ea3 commit 0e192a5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CPP20.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ C++20 includes the following new language features:
1919
- [lambda capture of parameter pack](#lambda-capture-of-parameter-pack)
2020
- [char8_t](#char8_t)
2121
- [constinit](#constinit)
22-
- [__VA_OPT__](#__VA_OPT__)
22+
- [\_\_VA\_OPT\_\_](#__VA_OPT__)
2323

2424
C++20 includes the following new library features:
2525
- [concepts library](#concepts-library)
@@ -450,7 +450,7 @@ constinit const char* c = f(true); // OK
450450
constinit const char* d = g(false); // ERROR: `g` is not constexpr, so `d` cannot be evaluated at compile-time.
451451
```
452452
453-
### `__VA_OPT__`
453+
### \_\_VA\_OPT\_\_
454454
Helps support variadic macros by evaluating to the given argument if the variadic macro is non-empty.
455455
```c++
456456
#define F(...) f(0 __VA_OPT__(,) __VA_ARGS__)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ C++20 includes the following new language features:
1818
- [lambda capture of parameter pack](#lambda-capture-of-parameter-pack)
1919
- [char8_t](#char8_t)
2020
- [constinit](#constinit)
21-
- [__VA_OPT__](#__VA_OPT__)
21+
- [\_\_VA\_OPT\_\_](#__VA_OPT__)
2222

2323
C++20 includes the following new library features:
2424
- [concepts library](#concepts-library)
@@ -554,7 +554,7 @@ constinit const char* c = f(true); // OK
554554
constinit const char* d = g(false); // ERROR: `g` is not constexpr, so `d` cannot be evaluated at compile-time.
555555
```
556556
557-
### `__VA_OPT__`
557+
### \_\_VA\_OPT\_\_
558558
Helps support variadic macros by evaluating to the given argument if the variadic macro is non-empty.
559559
```c++
560560
#define F(...) f(0 __VA_OPT__(,) __VA_ARGS__)

0 commit comments

Comments
 (0)