diff --git a/doc/langref.html.in b/doc/langref.html.in index 986da22dd2..6321dddff7 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -3887,6 +3887,17 @@ comptime { @cInclude, @cDefine, and @cUndef work within this expression, appending to a temporary buffer which is then parsed as C code.

+

+ Usually you should only have one @cImport in your entire application, because it saves the compiler + from invoking clang multiple times, and prevents inline functions from being duplicated. +

+

+ Reasons for having multiple @cImport expressions would be: +

+ {#see_also|Import from C Header File|@cInclude|@cDefine|@cUndef#} {#header_close#} {#header_open|@cInclude#}