mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Adding open_libraries(...) support for the Lua 5.3 utf8 library.
This commit is contained in:
parent
cf0802c6e0
commit
7d6276448b
|
@ -41,6 +41,7 @@ namespace sol {
|
|||
io,
|
||||
ffi,
|
||||
jit,
|
||||
utf8,
|
||||
count
|
||||
};
|
||||
|
||||
|
@ -148,6 +149,12 @@ namespace sol {
|
|||
lua_pop(L, 1);
|
||||
#endif // Lua 5.2+ only
|
||||
break;
|
||||
case lib:utf8:
|
||||
#if SOL_LUA_VERSION > 502
|
||||
luaL_requiref(L, "utf8", luaopen_utf8, 1);
|
||||
lua_pop(L, 1);
|
||||
#endif // Lua 5.3+ only
|
||||
break;
|
||||
#endif // Not LuaJIT
|
||||
case lib::string:
|
||||
luaL_requiref(L, "string", luaopen_string, 1);
|
||||
|
|
Loading…
Reference in New Issue
Block a user