How to block multiple usage of an enum element to a macro function during compile time

前端 未结 0 1376
终归单人心
终归单人心 2021-02-14 11:28

Please find the sample code below

typedef enum {
    ID_001 = 1,
    ID_002 = 2,
    ID_003 = 3,
}ENM_t;
#define ERR(en) {printf("ID = %d\\n", en);}
int         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题