simplecpp
simplecpp copied to clipboard
unexpanded inner macro
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.