Mercurial > pub > dyncall > dyncall
comparison doc/manual/manual_dyncall_api.tex @ 362:78dfa2f9783a
- added helper function dcGetModeFromCCSigChar() mapping callconv sig chars to respective mode
- added a signature-based syscall to callf testcode
- manual clarification about dcReset usage in combination with dcMode
author | Tassilo Philipp |
---|---|
date | Tue, 14 Apr 2020 16:56:57 +0200 |
parents | 32736025371f |
children | 3bdd326dc269 |
comparison
equal
deleted
inserted
replaced
361:06c9adae114d | 362:78dfa2f9783a |
---|---|
212 | 212 |
213 \begin{lstlisting}[language=c] | 213 \begin{lstlisting}[language=c] |
214 void dcReset(DCCallVM* vm); | 214 void dcReset(DCCallVM* vm); |
215 \end{lstlisting} | 215 \end{lstlisting} |
216 | 216 |
217 | 217 Resets the internal stack of arguments and prepares it for a new call. This |
218 Resets the internal stack of arguments and prepares it for a new call. | 218 function should be called after setting the call mode (using dcMode), but prior |
219 This function should be called after setting the call mode (using dcMode), but | 219 to binding arguments to the CallVM (except for when setting mode |
220 prior to binding arguments to the CallVM. Use it also when reusing a CallVM, as | 220 DC\_SIGCHAR\_CC\_ELLIPSIS\_VARARGS, which is used prior to binding varargs of |
221 arguments don't get flushed automatically after a function call invocation.\\ | 221 variadic functions). Use it also when reusing a CallVM, as arguments don't get |
222 flushed automatically after a function call invocation.\\ | |
222 Note: you should also call this function after initial creation of the a CallVM | 223 Note: you should also call this function after initial creation of the a CallVM |
223 object, as dcNewCallVM doesn't do this, implicitly.\\ | 224 object, as dcNewCallVM doesn't do this, implicitly.\\ |
224 | 225 |
225 \subsection{Argument binding} | 226 \subsection{Argument binding} |
226 | 227 |