diff options
author | Mike Pall <mike> | 2013-02-22 01:40:41 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2013-02-22 01:40:41 +0100 |
commit | e20157c6e68472e7c4d82d9ed4c0bb5be029c388 (patch) | |
tree | b26bfadc10b7301d73b84293630c44e7d1fb37f9 /src/lj_lib.h | |
parent | c3219b7d177f6722b9de808cfd3d3dbfc6808e6f (diff) | |
download | luajit-e20157c6e68472e7c4d82d9ed4c0bb5be029c388.tar.gz luajit-e20157c6e68472e7c4d82d9ed4c0bb5be029c388.tar.bz2 luajit-e20157c6e68472e7c4d82d9ed4c0bb5be029c388.zip |
Add support for embedding LuaJIT bytecode for builtins.
Diffstat (limited to 'src/lj_lib.h')
-rw-r--r-- | src/lj_lib.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lj_lib.h b/src/lj_lib.h index 2fe6d2a8..05f90de5 100644 --- a/src/lj_lib.h +++ b/src/lj_lib.h | |||
@@ -77,6 +77,7 @@ static LJ_AINLINE void lj_lib_pushcc(lua_State *L, lua_CFunction f, | |||
77 | #define LJLIB_CF(name) static int lj_cf_##name(lua_State *L) | 77 | #define LJLIB_CF(name) static int lj_cf_##name(lua_State *L) |
78 | #define LJLIB_ASM(name) static int lj_ffh_##name(lua_State *L) | 78 | #define LJLIB_ASM(name) static int lj_ffh_##name(lua_State *L) |
79 | #define LJLIB_ASM_(name) | 79 | #define LJLIB_ASM_(name) |
80 | #define LJLIB_LUA(name) | ||
80 | #define LJLIB_SET(name) | 81 | #define LJLIB_SET(name) |
81 | #define LJLIB_PUSH(arg) | 82 | #define LJLIB_PUSH(arg) |
82 | #define LJLIB_REC(handler) | 83 | #define LJLIB_REC(handler) |
@@ -96,7 +97,8 @@ LJ_FUNC void lj_lib_register(lua_State *L, const char *libname, | |||
96 | #define LIBINIT_ASM 0x40 | 97 | #define LIBINIT_ASM 0x40 |
97 | #define LIBINIT_ASM_ 0x80 | 98 | #define LIBINIT_ASM_ 0x80 |
98 | #define LIBINIT_STRING 0xc0 | 99 | #define LIBINIT_STRING 0xc0 |
99 | #define LIBINIT_MAXSTR 0x39 | 100 | #define LIBINIT_MAXSTR 0x38 |
101 | #define LIBINIT_LUA 0xf9 | ||
100 | #define LIBINIT_SET 0xfa | 102 | #define LIBINIT_SET 0xfa |
101 | #define LIBINIT_NUMBER 0xfb | 103 | #define LIBINIT_NUMBER 0xfb |
102 | #define LIBINIT_COPY 0xfc | 104 | #define LIBINIT_COPY 0xfc |