#error #warning and #line usage

Reference: https: //blog.csdn.net/qq_36016407/article/details/54946476

#error

#error a compiler for generating an error message and stops compiling
Usage: #error message 
NOTE: message does not need to be surrounded by double quotes

#error compiler directive from a compilation error message similar to the definition of the programmer-specific 

#warning

#warning used to generate compiler warnings, but does not stop the compiler

#line usage analysis

? #Line forces the specified line number and compile a new file name, and the source code renumbered 
Usage:? #Line number filename 
NOTE: filename can be omitted, filename as a string

#Line essentially compiled pointer is redefined the LINE _ _ _ _ _ _ and _ _ the FILE 

Guess you like

Origin www.cnblogs.com/zengjianrong/p/12204683.html