This shows you the differences between two versions of the page.
|
c:preprocessor:error [2013/10/23 16:11] Awad A. Bekhet [description of error] |
c:preprocessor:error [2024/02/16 01:06] (current) |
||
|---|---|---|---|
| Line 38: | Line 38: | ||
| #error Syntax to Pass this stage is required ! | #error Syntax to Pass this stage is required ! | ||
| #endif | #endif | ||
| - | |||
| </code> | </code> | ||
| ===== output of error c example ===== | ===== output of error c example ===== | ||
| - | If __"PASS_COMPILER"__ is __not defined__ in program, Then __compilation terminates__ with Error Message as shown: | + | In first program: |
| + | No output, because __"PASS_COMPILER"__ is __not defined__ in program, so __compilation terminates__ with Error Message as shown: | ||
| <fc #FF0000>//"\main.c|4|error: #error Syntax to Pass this stage is required !|"//</fc> | <fc #FF0000>//"\main.c|4|error: #error Syntax to Pass this stage is required !|"//</fc> | ||
| + | |||
| + | In the Second program: | ||
| + | Output will be: | ||
| + | <code> | ||
| + | code-reference.com/c | ||
| + | </code> | ||