- Name:
-
#error
- Syntax:
-
#ERROR “comment”
- Description:
-
Force a compiler error at the current position.
- Applies To:
-
All
- See Also:
-
- Related Create:
-
- Share:
-
- Print:
-
Using #error
Using the #error directive will cause the specified error message to be presented when the program is syntax checked or is downloaded.
- Code Example:
-
#error "Code not finished!"
Copy Code
Submit an Example
Submit Your Own Code!
You must be logged in to submit code examples. Login now.