Sur*_*oot 15
你几乎是对的; 基本上它被建议"if-def"代码部分.您要做的是使用预编译器指令#if为您阻止代码.下面的Ex表明我想忽略if和endif之间的所有内容.
#if 0
/* Giant comment
it doesn't matter what I put here */
// it will be ignored forever.
#endif
Run Code Online (Sandbox Code Playgroud)
一般来说,回答你的问题; 没有办法有复合评论,即
/*
/* */ <--- this closes the first /*
*/ <--- this dangles.
Run Code Online (Sandbox Code Playgroud)