Skip to content
RED SAGSkills
medium10 pts · first answer countsembedded-cpreprocessor

Why do { } while (0)

Why are multi-statement macros wrapped like this?

#define LED_PULSE() do { LED_ON(); delay_us(5); LED_OFF(); } while (0)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions