在下面语句是编译通过的,在语句中“& \”是什么作用?
#define GET_STATUS_BIT(status_variable,bit) (0 != (status_variable & \
(1<<(bit))))
如果改为:
#define GET_STATUS_BIT(status_variable,bit) (0 != (status_variable & \ (1<<(bit))))
则编译失败,想不通,所以向大家请教了。
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.
在下面语句是编译通过的,在语句中“& \”是什么作用?
#define GET_STATUS_BIT(status_variable,bit) (0 != (status_variable & \
(1<<(bit))))
如果改为:
#define GET_STATUS_BIT(status_variable,bit) (0 != (status_variable & \ (1<<(bit))))
则编译失败,想不通,所以向大家请教了。
C语言的语法,\是说明下一行和你当前的这一行是同一行。
这个字符必须要是放在一行的末尾才有效。