usage of “\” in C?

前端 未结 3 1529
忘了有多久
忘了有多久 2021-01-26 10:46

I was looking over this code, but i was unable to figure out why the usage of \"\\\" after the && operator?

if ((*(u32*)(kaddr + 0x64) == *(u32*)(kad         


        
3条回答
  •  孤城傲影
    2021-01-26 11:20

    Among its uses are Macro definitions, basically it tells the compiler not to stop at the end of the line but rater to continue. example:

    #define ASSERT_NULL(value)      \
        do {                        \
            if((value) == NULL) {   \
                return true;        \
            }                       \
        } while(NULL)
    

    Now, if you won't put \, you won't get the functionality you're looking for.

提交回复
热议问题