Echelon Neuron C Instrukcja Użytkownika Strona 58

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 267
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 57
38 Compiler Directives
...
#else
#ifdef YYY
...
#else
#error “You must define either XXX or YYY”
#endif
#endif
This directive differs from the ANSI C #error directive in that the Neuron C
version requires a quoted string.
#warning “
text
This directive allows you to issue a custom warning message. When this
directive is processed, program compilation continues. This directive is
useful for managing conditional compilation, for example:
#ifdef XXX
...
#else
#ifdef YYY
...
#else
#warning “You should define either XXX or YYY”
#endif
#endif
Przeglądanie stron 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 266 267

Komentarze do niniejszej Instrukcji

Brak uwag