mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Merge branch 'master' into v2.1
This commit is contained in:
commit
ccd456af73
@ -566,7 +566,7 @@ Thus it's not helpful and actually counter-productive to cache
|
|||||||
individual C functions like this:
|
individual C functions like this:
|
||||||
</p>
|
</p>
|
||||||
<pre class="code">
|
<pre class="code">
|
||||||
local <b>funca</b>, <b>funcb</b> = ffi.C.funcb, ffi.C.funcb -- <span style="color:#c00000;">Not helpful!</span>
|
local <b>funca</b>, <b>funcb</b> = ffi.C.funca, ffi.C.funcb -- <span style="color:#c00000;">Not helpful!</span>
|
||||||
local function foo(x, n)
|
local function foo(x, n)
|
||||||
for i=1,n do <b>funcb</b>(<b>funca</b>(x, i), 1) end
|
for i=1,n do <b>funcb</b>(<b>funca</b>(x, i), 1) end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user