
Chapter 20 Preprocessor
20-3
#error (Preprocessor Statement)
Function
Forcibly generates a compiling error if the #error command is executed.
Format
#error [<Message>]
Explanation
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>.
Example
#error “Error Occur” 'If compiling is executed, the message “Error Occur”
'appears.
Comentários a estes Manuais