Why would somebody use an #if 1 C preprocessor directive?

前端 未结 9 2089
谎友^
谎友^ 2020-12-10 01:42

I am looking through some C source code and I don\'t understand the following part

#if 1

   typedef u         


        
9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 02:20

    It is just a different way to comment out big piece of code, so, editor auto indentation would not break indentation (commented block of code would be indented as text, not as code).

提交回复
热议问题