Skip to content

Commit

Permalink
Specify prototypes in Include-files, in particular const-ness.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Jul 5, 2019
1 parent 9fb2b11 commit fd8a0f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chapters/functions.tex
Expand Up @@ -1738,6 +1738,12 @@ \section{External Function Interface}\doublelabel{external-function-interface}
is treated the same way as a top-level input or output in the external
call.

If the function has \lstinline!annotation(Include="includeDirective")!, \autoref{annotations-for-external-libraries-and-include-files}
it is assumed that it contains an actual prototype and no prototype shall be automatically generated.
In that case the input argument pointers shall be const pointers (indicating that they do not modify the inputs),
and non-const pointers are deprecated.
The optional external-function-call is still used for determining the name of the function, and order of arguments, as described below.

\subsection{Argument type Mapping}\doublelabel{argument-type-mapping}

The arguments of the external function are declared in the same order as
Expand Down

0 comments on commit fd8a0f5

Please sign in to comment.