aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoteus <mimir@newmail.ru>2013-12-26 19:09:21 +0400
committermoteus <mimir@newmail.ru>2013-12-26 19:09:21 +0400
commit1e6ac084cf3f3b44295a55f0102dcbc4907c6fbb (patch)
tree1dcbe7cc746412c247429879c073ce8da4cb1175 /src
parentd19ff5561a442e18953130e0f21ac97b9bac4618 (diff)
downloadlua-llthreads2-1e6ac084cf3f3b44295a55f0102dcbc4907c6fbb.tar.gz
lua-llthreads2-1e6ac084cf3f3b44295a55f0102dcbc4907c6fbb.tar.bz2
lua-llthreads2-1e6ac084cf3f3b44295a55f0102dcbc4907c6fbb.zip
Fix. Register LuaJIT built-in libraries.
Diffstat (limited to 'src')
-rw-r--r--src/llthread.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/llthread.c b/src/llthread.c
index b61bf11..5bcd821 100644
--- a/src/llthread.c
+++ b/src/llthread.c
@@ -357,9 +357,25 @@ static void open_thread_libs(lua_State *L){
357 L_REGLIB(L, os, 1); 357 L_REGLIB(L, os, 1);
358 L_REGLIB(L, math, 1); 358 L_REGLIB(L, math, 1);
359 L_REGLIB(L, table, 1); 359 L_REGLIB(L, table, 1);
360 L_REGLIB(L, debug, 1);
361 L_REGLIB(L, string, 1); 360 L_REGLIB(L, string, 1);
362 361
362#ifdef LUA_DBLIBNAME
363 L_REGLIB(L, debug, 1);
364#endif
365
366#ifdef LUA_BITLIBNAME
367 L_REGLIB(L, bit, 1);
368#endif
369
370#ifdef LUA_JITLIBNAME
371 L_REGLIB(L, jit, 1);
372#endif
373
374#ifdef LUA_FFILIBNAME
375 L_REGLIB(L, ffi, 1);
376#endif
377
378
363 lua_settop(L, top); 379 lua_settop(L, top);
364#undef L_REGLIB 380#undef L_REGLIB
365} 381}