From 0e192a5e56a3c044f78ab3131401781088f48620 Mon Sep 17 00:00:00 2001 From: Anthony Calandra Date: Sat, 12 Oct 2024 22:56:34 -0400 Subject: [PATCH] Fix formatting issues with __VA_OPT__. --- CPP20.md | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CPP20.md b/CPP20.md index 55ae236..bd23c48 100644 --- a/CPP20.md +++ b/CPP20.md @@ -19,7 +19,7 @@ C++20 includes the following new language features: - [lambda capture of parameter pack](#lambda-capture-of-parameter-pack) - [char8_t](#char8_t) - [constinit](#constinit) -- [__VA_OPT__](#__VA_OPT__) +- [\_\_VA\_OPT\_\_](#__VA_OPT__) C++20 includes the following new library features: - [concepts library](#concepts-library) @@ -450,7 +450,7 @@ constinit const char* c = f(true); // OK constinit const char* d = g(false); // ERROR: `g` is not constexpr, so `d` cannot be evaluated at compile-time. ``` -### `__VA_OPT__` +### \_\_VA\_OPT\_\_ Helps support variadic macros by evaluating to the given argument if the variadic macro is non-empty. ```c++ #define F(...) f(0 __VA_OPT__(,) __VA_ARGS__) diff --git a/README.md b/README.md index d4eb394..feb28d2 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ C++20 includes the following new language features: - [lambda capture of parameter pack](#lambda-capture-of-parameter-pack) - [char8_t](#char8_t) - [constinit](#constinit) -- [__VA_OPT__](#__VA_OPT__) +- [\_\_VA\_OPT\_\_](#__VA_OPT__) C++20 includes the following new library features: - [concepts library](#concepts-library) @@ -554,7 +554,7 @@ constinit const char* c = f(true); // OK constinit const char* d = g(false); // ERROR: `g` is not constexpr, so `d` cannot be evaluated at compile-time. ``` -### `__VA_OPT__` +### \_\_VA\_OPT\_\_ Helps support variadic macros by evaluating to the given argument if the variadic macro is non-empty. ```c++ #define F(...) f(0 __VA_OPT__(,) __VA_ARGS__)