void func(char * param)
{
#ifdef _XYZ_
.....somecode here using param
#endif
.....lots of code here not using param
}
Run Code Online (Sandbox Code Playgroud)
编译出错,我什至不希望在代码中发出警告。
我是Visual Studio 代码IDE 的新手。我喜欢在分号后格式化代码的整体想法;当我尝试在一条直线上写两行代码时,我不能。因为当我输入/键入第二行的分号时,它会自动将其带到下一行。