fixing markdown tags

This commit is contained in:
Edson Brandi 2025-08-10 16:33:42 -03:00
parent 9e51e69092
commit c7be15f162

View file

@ -1231,7 +1231,7 @@ In the FreeBSD kernel, you'll often see this pattern inside macros designed to b
```c
if (x) TIMESPEC_TO_TIMEVAL(tv, ts);
else ...
```
While `do...while (0)` may look odd, it’s a solid C idiom used to make macro expansions safe and predictable in all contexts (like inside conditional statements). It ensures that the entire macro behaves like one statement and avoids accidentally creating half-executed code. Understanding this helps you read and avoid subtle bugs in kernel code that rely heavily on macros for clarity and safety.