diff options
author | Mike Pall <mike> | 2011-02-02 02:38:59 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-02-02 02:38:59 +0100 |
commit | 2c8945d3e734bb42faa60ef0b97a6115a2b099f7 (patch) | |
tree | e60c74f1aedd55b133b9194746b9c9952dc47a30 /src/lj_lib.h | |
parent | 1505d6ffde5e91716ebdd6eeb14860eeedf2bf30 (diff) | |
download | luajit-2c8945d3e734bb42faa60ef0b97a6115a2b099f7.tar.gz luajit-2c8945d3e734bb42faa60ef0b97a6115a2b099f7.tar.bz2 luajit-2c8945d3e734bb42faa60ef0b97a6115a2b099f7.zip |
Use names defined in lualib.h for library registration.
Diffstat (limited to '')
-rw-r--r-- | src/lj_lib.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lj_lib.h b/src/lj_lib.h index ef73218e..b9bd4c2d 100644 --- a/src/lj_lib.h +++ b/src/lj_lib.h | |||
@@ -81,9 +81,7 @@ static LJ_AINLINE void lj_lib_pushcc(lua_State *L, lua_CFunction f, | |||
81 | #define LJLIB_NOREGUV | 81 | #define LJLIB_NOREGUV |
82 | #define LJLIB_NOREG | 82 | #define LJLIB_NOREG |
83 | 83 | ||
84 | #define LJ_LIB_REG(L, name) \ | 84 | #define LJ_LIB_REG(L, regname, name) \ |
85 | lj_lib_register(L, #name, lj_lib_init_##name, lj_lib_cf_##name) | ||
86 | #define LJ_LIB_REG_(L, regname, name) \ | ||
87 | lj_lib_register(L, regname, lj_lib_init_##name, lj_lib_cf_##name) | 85 | lj_lib_register(L, regname, lj_lib_init_##name, lj_lib_cf_##name) |
88 | 86 | ||
89 | LJ_FUNC void lj_lib_register(lua_State *L, const char *libname, | 87 | LJ_FUNC void lj_lib_register(lua_State *L, const char *libname, |