Echelon Neuron C Uživatelský manuál Strana 58

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 267
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 266 267

Komentáře k této Příručce

Žádné komentáře