Some features of the ANSI C standard are not defined unerringly by ANSI.
ANSI allows each implementer of a C compiler free hand to define these aspects independently. This article tells how Borland has preferred to define these implementation-specific standards. The section numbers refer to the February 1990 ANSI Standard. Bear in mind that there are differences between C and C++; this appendix addresses C only.
How to recognize a diagnostic?
When the compiler runs with the acceptable combination of options, any message it issues opening with the words Fatal, Error, or Warning are diagnostics in the sense that ANSI specifies. The options needed to assure this interpretation are in the following table. The options are listed as hot keys you use in the IDE. For example, the first option Corresponds to Options, Compiler or Source, and in the Source Options Dialog box you'd choose ANSI for the Keyword option.
The diagnostic printed by and the termination behavior of the assert function.
The diagnostic message printed is "Assertion failed: expression, file filename, line nn", where phrase is the asserted phrase which failed, filename is the source file name, and nn is the line number where the assertion took place. Abort is called immediately after the assertion message is displayed.
ANSI allows each implementer of a C compiler free hand to define these aspects independently. This article tells how Borland has preferred to define these implementation-specific standards. The section numbers refer to the February 1990 ANSI Standard. Bear in mind that there are differences between C and C++; this appendix addresses C only.
How to recognize a diagnostic?
When the compiler runs with the acceptable combination of options, any message it issues opening with the words Fatal, Error, or Warning are diagnostics in the sense that ANSI specifies. The options needed to assure this interpretation are in the following table. The options are listed as hot keys you use in the IDE. For example, the first option Corresponds to Options, Compiler or Source, and in the Source Options Dialog box you'd choose ANSI for the Keyword option.
The diagnostic printed by and the termination behavior of the assert function.
The diagnostic message printed is "Assertion failed: expression, file filename, line nn", where phrase is the asserted phrase which failed, filename is the source file name, and nn is the line number where the assertion took place. Abort is called immediately after the assertion message is displayed.
No comments:
Post a Comment