#error (Preprocessor Statement)


Forcibly generates a compiling error if the #error command is executed.


#error [<Message>]


Use this statement when you purposely want to generate an error to test a program.
If you compile a line using the #error command, an error occurs.
At this time, an error message appears, showing the contents defined in <Message>.


#error "Error Occur"
'If compiling is executed, the message "Error Occur"
'appears.


Top