Skip to content

Commit 753ec18

Browse files
Update chapters/functions.tex
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
1 parent a322c35 commit 753ec18

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

chapters/functions.tex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,8 +2374,7 @@ \subsection{Annotations for External Functions}\label{annotations-for-external-l
23742374

23752375
The included code should be valid C89 code.
23762376
If the \lstinline[language=grammar]!external-function-call! contains any `size`-expression, the tool is responsible for ensuring that a C-header defining \lstinline[language=C]!size_t! is included before the \lstinline!"insertedCode"!.
2377-
This gives a code fragment \lstinline!"insertedCode"! conditionally preceded by a header for \lstinline[language=C]!size_t!.
2378-
It must be possible to compile this code fragment separately.
2377+
The \lstinline!"insertedCode"!, conditionally preceded by a header for \lstinline[language=C]!size_t!, must be a valid translation unit.
23792378

23802379
When an \lstinline!Include! annotation is present, it shall provide a prototype for the external function, and hence the tool shall not produce an automatically generated prototype in the generated code in this case.
23812380

0 commit comments

Comments
 (0)