alsig
Junior Member level 1

C question
Hi,
I stumbled upon this code
and I don’t understand why the do-while loop is used. Why not just skip it?
By the way I’m not sure this is the right forum, sorry
Alsig
Hi,
I stumbled upon this code
Code:
#if !defined(USE_INTERRUPTS)
#define Init()
#else
#define Init() do { InitTMR2();\
} while (0)
and I don’t understand why the do-while loop is used. Why not just skip it?
By the way I’m not sure this is the right forum, sorry
Alsig