Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in Wiki #11

Open
svaniksharma opened this issue May 20, 2019 · 1 comment
Open

Typo in Wiki #11

svaniksharma opened this issue May 20, 2019 · 1 comment

Comments

@svaniksharma
Copy link

svaniksharma commented May 20, 2019

Don't mean to be that guy, but in the Comparison section at the end of the starting paragraph, it says marcos when it should say macros.

@tansy
Copy link

tansy commented Apr 28, 2024

Taking the opportunity, I will also propose some corrections.

--- C-Preprocessor-tricks,-tips,-and-idioms.md~	2017-07-09 21:35:04.000000000 +0000
+++ C-Preprocessor-tricks,-tips,-and-idioms.md	2024-04-28 15:04:37.818698750 +0000
@@ -1,12 +1,12 @@
 # Basic
 ## Pattern Matching
-The `##` operator is used to concatenate two tokens into one token. This is provides a very powerful way to do pattern matching. Say we want to write a `IIF` macro, we could write it like this:
+The `##` operator is used to concatenate two tokens into one token. This provides a very powerful way to do pattern matching. Say we want to write a `IIF` macro, we could write it like this:
 ```c
 #define IIF(cond) IIF_ ## cond
 #define IIF_0(t, f) f
 #define IIF_1(t, f) t
 ```
-However there is one problem with this approach. A subtle side effect of the `##` operator is that it inhibits expansion. Heres an example:
+However there is one problem with this approach. A subtle side effect of the `##` operator is that it inhibits expansion. Here is an example:
 ```c
 #define A() 1
 //This correctly expands to true

Or here if it didn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants