C++ #error命令

来源:百度知道 编辑:UC知道 时间:2024/07/02 12:43:57
在C++程序中的#error,#line的用法各是什么
谢谢

The #line directive tells the preprocessor to change the compiler’s internally stored line number and filename to a given line number and filename. The compiler uses the line number and filename to refer to errors that it finds during compilation. The line number usually refers to the current input line, and the filename refers to the current input file. The line number is incremented after each line is processed.