From f125d90796a7394760e98380255117952bcb0109 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Wed, 29 May 2024 15:05:19 +0200 Subject: Fix bad std::optional usage --- src/state.cpp | 17 ++++++++++------- tests/nameof.lua | 4 ++-- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/state.cpp b/src/state.cpp index 271e3a7..b747a9f 100644 --- a/src/state.cpp +++ b/src/state.cpp @@ -91,7 +91,7 @@ namespace { // ################################################################################################# -static void open1lib(lua_State* L_, std::string_view const& name_) +static void Open1Lib(lua_State* L_, std::string_view const& name_) { for (luaL_Reg const& _entry : local::sLibs) { if (name_ == _entry.name) { @@ -285,20 +285,21 @@ lua_State* luaG_newstate(Universe* U_, SourceState from_, std::optional= 502) { @@ -319,14 +320,16 @@ lua_State* luaG_newstate(Universe* U_, SourceState from_, std::optional