FFI: Add ffi.* library.

This commit is contained in:
Mike Pall
2010-12-05 00:43:47 +01:00
parent 513b0ba18f
commit 7cb250c4b4
7 changed files with 390 additions and 4 deletions

View File

@@ -11,6 +11,8 @@
#include "lauxlib.h"
#include "lualib.h"
#include "lj_arch.h"
static const luaL_Reg lj_lib_load[] = {
{ "", luaopen_base },
{ LUA_LOADLIBNAME, luaopen_package },
@@ -26,6 +28,9 @@ static const luaL_Reg lj_lib_load[] = {
};
static const luaL_Reg lj_lib_preload[] = {
#if LJ_HASFFI
{ LUA_FFILIBNAME, luaopen_ffi },
#endif
{ NULL, NULL }
};