This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

simaple里的例程代码 #define KVP(v) { v, #v } 不懂



谁能解释一下 v, #v是什么意思。

先在这里感谢了

/***********************************************************************************
 * CONSTANTS
 */

// Define SREG or FREG for output to serial port
#define FREG

#define KVP(v)	{ v, #v }

typedef struct {
    const uint8 iRegNum;
    const char *szRegName;
} regKvp_t;