Skip to content

Commit

Permalink
Update chapters/functions.tex
Browse files Browse the repository at this point in the history
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
  • Loading branch information
HansOlsson and henrikt-ma committed Mar 20, 2024
1 parent a322c35 commit 753ec18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chapters/functions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2374,8 +2374,7 @@ \subsection{Annotations for External Functions}\label{annotations-for-external-l

The included code should be valid C89 code.
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"!.
This gives a code fragment \lstinline!"insertedCode"! conditionally preceded by a header for \lstinline[language=C]!size_t!.
It must be possible to compile this code fragment separately.
The \lstinline!"insertedCode"!, conditionally preceded by a header for \lstinline[language=C]!size_t!, must be a valid translation unit.

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.

Expand Down

0 comments on commit 753ec18

Please sign in to comment.