simplecpp icon indicating copy to clipboard operation
simplecpp copied to clipboard

unexpanded inner macro

Open danmar opened this issue 7 years ago • 1 comments

Example code:

#define MAC2STR(x) x[0],x[1],x[2],x[3],x[4],x[5]
#define FT_DEBUG(fmt, args...) if(pGlobalCtx && pGlobalCtx->debug_level>=2) printf("FT-dbg: "fmt, ##args)

FT_DEBUG("  %02x:%02x:%02x:%02x:%02x:%02x\n", MAC2STR(pCtx->wlan_intf_addr[i]));

Simplecpp does not preprocess this code properly. The MAC2STR is not expanded.

danmar avatar May 20 '18 21:05 danmar