#define LUA_COLIBNAME "coroutine"
LUAMOD_API int (luaopen_coroutine) (lua_State *L)
#define LUA_TABLIBNAME "table"
LUAMOD_API int (luaopen_table) (lua_State *L)
#define LUA_IOLIBNAME "io"
LUAMOD_API int (luaopen_io) (lua_State *L)
#define LUA_OSLIBNAME "os"
LUAMOD_API int (luaopen_os) (lua_State *L)
#define LUA_STRLIBNAME "string"
LUAMOD_API int (luaopen_string) (lua_State *L)
#define LUA_BITLIBNAME "bit32"
LUAMOD_API int (luaopen_bit32) (lua_State *L)
#define LUA_MATHLIBNAME "math"
LUAMOD_API int (luaopen_math) (lua_State *L)
#define LUA_DBLIBNAME "debug"
LUAMOD_API int (luaopen_debug) (lua_State *L)
#define LUA_LOADLIBNAME "package"
LUAMOD_API int (luaopen_package) (lua_State *L)
/* open all previous libraries */
LUALIB_API void (luaL_openlibs) (lua_State *L)
a utf-8 support module for Lua and LuaJIT源码地址: https://github.com/starwing/luautf8
编译后可用的库: https://github.com/cherishpf/luautf8
https://download.csdn.net/download/cherishpf/11579451
Linux版:lua-utf8.so
Windows版:lua-utf8.dll(若是用在openresty中,openresty版本需使用32位版本,使用64位版本时会报错“lua-utf8.dll 不是有效的 Win32 应用程序”)
将lua-utf8库放在openresty安装目录下,使用时用require引入。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)