What's the meaning of #line in C language?

前端 未结 6 1817
借酒劲吻你
借酒劲吻你 2021-02-01 03:27

What\'s the meaning of #line in the C language? Where would it be used?

6条回答
  •  眼角桃花
    2021-02-01 04:02

    It allows you to change the apparent line number of the file.

    The only use I can think of for it is to make the line numbers sane after a long series of multi-line macros.

    usage is:

    #line 42
    

提交回复
热议问题