Bull DPX/20 Podręcznik Użytkownika Strona 67

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 424
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 66
SOM Kernel Reference 1-55
SOM_Expect Macro
Purpose
Asserts that a boolean condition is expected to be true.
Syntax
void SOM_Expect (boolean condition);
Description
The SOM_Expect macro is used to place boolean assertions that are expected to be true
into a program:
If condition is FALSE and SOM_WarnLevel is set to be greater than zero, then a warning
message is output.
If condition is TRUE and SOM_AssertLevel is set to be greater than zero, then an
informational message is output.
Parameters
condition A boolean expression that is expected to be TRUE (nonzero).
Expansion
If condition is FALSE and SOM_WarnLevel is set to be greater than zero, then a warning
message is output. If condition is TRUE and SOM_AssertLevel is set to be greater than
zero, then an information message is output.
Example
SOM_Expect(2==2);
Related Information
Macros: SOM_Assert, SOM_Test, SOM_TestC
Przeglądanie stron 66
1 2 ... 62 63 64 65 66 67 68 69 70 71 72 ... 423 424

Komentarze do niniejszej Instrukcji

Brak uwag