
•
Example
#if defined DEBUG_MODE
#define TOTAL_COUNT 50
#endif
→
#undef
•
Syntax
#undef
symbol
•
Description
The #undef directive causes the symbol’s preprocessor definition to be
erased. Once defined, a preprocessor symbol remains defined and in scope
until the end of the compilation unit or until it is undefined using an
#undef directive.
•
Example
#define TOTAL_COUNT 100
...
#undef TOTAL_COUNT
#define TOTAL_COUNT 50
→
File inclusion: #include
•
Syntax
#include
<
file-name>
or
#include
"
file-name"
•
Description
#include inserts the entire text from another file at this point in the
source file. When <file-name> is used, the compiler looks for the file in
the directory specified by the environment variable INCLUDE. If the
INCLUDE is not defined, the C compiler looks for the file in the path.
When "file-name" is used, the C compiler looks for the file as specified.
If no directory is specified, the current directory is checked.
•
Example
#include <ht48c10.inc>
#include "ht8270.inc"
→
Inline assembly: #asm and #endasm
•
Syntax
Inline assembly instructions can be included as follows:
#asm
<[
label:] opcode [operands]>;
...
#endasm
HT-IDE User’s Guide
106
Содержание HT-IDE
Страница 11: ...P a r t I Integrated Development Environment Part I Integrated Development Environment 1 ...
Страница 12: ...HT IDE User s Guide 2 ...
Страница 20: ...Fig 1 6 Fig 1 7 HT IDE User s Guide 10 ...
Страница 24: ...HT IDE User s Guide 14 ...
Страница 70: ...HT IDE User s Guide 60 ...
Страница 76: ...HT IDE User s Guide 66 ...
Страница 92: ...HT IDE User s Guide 82 ...
Страница 93: ...P a r t I I Development Language and Tools Part II Development Language and Tools 83 ...
Страница 94: ...HT IDE User s Guide 84 ...
Страница 148: ...HT IDE User s Guide 138 ...
Страница 150: ...Fig 12 1 Fig 12 2 HT IDE User s Guide 140 ...
Страница 154: ...HT IDE User s Guide 144 ...
Страница 192: ...HT IDE User s Guide 182 ...
Страница 194: ...HT IDE User s Guide 184 ...
Страница 218: ...HT IDE User s Guide 208 ...
Страница 235: ...P a r t V Appendix Part V Appendix 225 ...
Страница 236: ...HT IDE User s Guide 226 ...
Страница 250: ...HT IDE User s Guide 240 ...