Other Parts Discussed in Thread: Z-STACK
hi....i am using ti z-stack for home automation for my project purpose. while tracing out the sample switch program available with the stack, i came across the below code
#define HAL_ENTER_CRITICAL_SECTION(x) \
do { (x) = !IntMasterDisable(); } while (0)
in the sample code, the 'x' is declared as 'intstate' and has not been initialized. what will be the output of the above piece of code?? what is the significance of "do-while" statement??