Rollup merge of #30986 - sliz1:book-macro, r=alexcrichton

Sorry for nitpicking, but I think the example of the expanded macro should be wrapped inside a pair of curly braces to match the macro definition. Also the current example triggers a variable redefinition error.
This commit is contained in:
Manish Goregaokar 2016-01-19 04:08:58 +05:30
commit f0e8594bce

View File

@ -285,9 +285,11 @@ This expands to
```text
const char *state = "reticulating splines";
int state = get_log_state();
if (state > 0) {
printf("log(%d): %s\n", state, state);
{
int state = get_log_state();
if (state > 0) {
printf("log(%d): %s\n", state, state);
}
}
```