diff options
author | Alex Orlenko <zxteam@protonmail.com> | 2019-12-26 22:51:15 +0000 |
---|---|---|
committer | Alex Orlenko <zxteam@protonmail.com> | 2019-12-26 23:04:21 +0000 |
commit | 42b33849e18b35a0dc2341849d96322bca35526e (patch) | |
tree | 07a9370a8dc31086c5ee118852e545b7d4cd9b9e /src/ffi/glue | |
parent | c9c8f983e06c2475736608891b11a285a696c41b (diff) | |
download | mlua-42b33849e18b35a0dc2341849d96322bca35526e.zip |
Add support of loading a specified set of standard libraries
Diffstat (limited to 'src/ffi/glue')
-rw-r--r-- | src/ffi/glue/glue.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ffi/glue/glue.c b/src/ffi/glue/glue.c index 8c2ade3..ccd13af 100644 --- a/src/ffi/glue/glue.c +++ b/src/ffi/glue/glue.c @@ -263,15 +263,21 @@ int main(int argc, const char **argv) { RS_STR("LUA_IOLIBNAME", LUA_IOLIBNAME), RS_STR("LUA_OSLIBNAME", LUA_OSLIBNAME), RS_STR("LUA_STRLIBNAME", LUA_STRLIBNAME), -#if LUA_VERSION_NUM == 503 +#ifdef LUA_UTF8LIBNAME RS_STR("LUA_UTF8LIBNAME", LUA_UTF8LIBNAME), #endif -#if LUA_VERSION_NUM >= 502 +#ifdef LUA_BITLIBNAME RS_STR("LUA_BITLIBNAME", LUA_BITLIBNAME), #endif RS_STR("LUA_MATHLIBNAME", LUA_MATHLIBNAME), RS_STR("LUA_DBLIBNAME", LUA_DBLIBNAME), RS_STR("LUA_LOADLIBNAME", LUA_LOADLIBNAME), +#ifdef LUA_JITLIBNAME + RS_STR("LUA_JITLIBNAME", LUA_JITLIBNAME), +#endif +#ifdef LUA_FFILIBNAME + RS_STR("LUA_FFILIBNAME", LUA_FFILIBNAME), +#endif }; if (!write_items(f, glue_entries)) { |