Skip to content

Commit 7cf7b7a

Browse files
committed
ImportC: all about __IMPORTC__ predefined macro
1 parent 0c422cb commit 7cf7b7a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec/importc.dd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ $(H2 $(LNAME2 preprocessor, Preprocessor))
101101
$(P and the preprocessed output is written to $(TT file.i).)
102102

103103

104+
$(H2 $(LNAME2 predefined-macros, Predefined Macros))
105+
106+
$(P ImportC does not predefine any macros.)
107+
108+
$(BEST_PRACTICE To distinguish an ImportC compile vs some other C compiler, define
109+
`__IMPORTC__` to be `1` when the preprocessor is run.)
110+
104111
$(H2 $(LNAME2 preprocessor-directives, Preprocessor Directives))
105112

106113
$(P Nevertheless, ImportC supports these preprocessor directives:)

0 commit comments

Comments
 (0)