Skip to content

Commit

Permalink
Update chapters/functions.tex
Browse files Browse the repository at this point in the history
Co-authored-by: Elena Shmoylova <eshmoylova@users.noreply.github.com>
  • Loading branch information
HansOlsson and eshmoylova committed Mar 12, 2024
1 parent 7338c52 commit a322c35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chapters/functions.tex
Expand Up @@ -2374,7 +2374,8 @@ \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"!.
The \lstinline!"insertedCode"! (following the inclusion of a header for \lstinline[language=C]!size_t! when this would be a tool responsibility) shall be possible to compile separately.
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.

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 a322c35

Please sign in to comment.