Adding open_libraries(...) support for the Lua 5.3 utf8 library.

This commit is contained in:
OrfeasZ 2016-08-06 16:48:51 +03:00
parent cf0802c6e0
commit 7d6276448b

View File

@ -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);