I put the following code into my progrm.
#if SOME_CONDITION
#error "SOME_CONDITION is not supported"
//tell compiler stop compiling.
#endif
//My other code goes here ......
But how to tell the compiler stop compiling????
l*l 发帖数: 26
2
Seems no way to stop gcc compiling.
In Microsoft C, #error stop the compiler immediately.
【在 l*l 的大作中提到】 : I put the following code into my progrm. : #if SOME_CONDITION : #error "SOME_CONDITION is not supported" : //tell compiler stop compiling. : #endif : //My other code goes here ...... : But how to tell the compiler stop compiling????