diff --git a/sol/state_view.hpp b/sol/state_view.hpp index a7110112..bca29948 100644 --- a/sol/state_view.hpp +++ b/sol/state_view.hpp @@ -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);