diff options
Diffstat (limited to 'src/llthread.c')
| -rw-r--r-- | src/llthread.c | 18 |
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 | } |
