<!DOCTYPE html>
<html data-lt-installed="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body style="padding-bottom: 1px;">
<p>Hi, Sergey!<br>
</p>
<div class="moz-cite-prefix">On 08.10.2024 16:25, Sergey Kaplun
wrote:<br>
</div>
<p><snipped><br>
</p>
<blockquote type="cite" cite="mid:ZwUy2dQqWU1G6hiF@root"><span
style="white-space: pre-wrap">
</span>
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">+ffi.cdef[[
+ double sin(double, ...);
+ double cos(double, ...);
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Why do you use sin/cos with wrong function prototypes if you can take
a function with varargs. (printf for example)?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
I suppose this hack is well suited for our testing purposes:
1) We don't need to create custom vararg functions and the corresponding
C libary.
2) Functions usage is obvious. Also, the vararg part will be silently
ignored.
Be aware that we need the result of the function's call.
</pre>
</blockquote>
<p>Got it. I would add this as a comment. Feel free to ignore.</p>
<p>LGTM<br>
</p>
</body>
<lt-container></lt-container>
</html>