AVSystem / Anjay-stm32-azurertos-client

Anjay IoT library and Azure RTOS integration layer, featuring STM32 demo projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

START_PARAM_LOOP() Macro issue

SimonPeacock opened this issue · comments

At the end of the START_PARAM_LOOP() macro, there is a trailing '\' which links the next line into the macro. Although this isn't an issue since the next line is a blank line, anything following the START_PARAM_LOOP() will be automatically included in the macro. (may cause an unforeseen issue at a later time).

#define START_PARAM_LOOP() uint8_t exitcode = 0U;\
do {\
if (atcc_extractElement(p_at_ctxt, p_msg_in, element_infos) != ATENDMSG_NO) {exitcode = 1U;}\
if (element_infos->str_size != 0U)\
{\