refactor: complete 'lua' namespace use

This commit is contained in:
MihailRis
2024-06-11 13:51:11 +03:00
parent 90bc86408b
commit 913e5983b1
26 changed files with 370 additions and 359 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
#include "../../../coders/json.hpp"
#include "../../../data/dynamic.hpp"
static int l_json_stringify(lua_State* L) {
static int l_json_stringify(lua::State* L) {
auto value = lua::tovalue(L, 1);
if (auto mapptr = std::get_if<dynamic::Map_sptr>(&value)) {
@@ -15,7 +15,7 @@ static int l_json_stringify(lua_State* L) {
}
}
static int l_json_parse(lua_State* L) {
static int l_json_parse(lua::State* L) {
auto string = lua::require_string(L, 1);
auto element = json::parse("<string>", string);
return lua::pushvalue(L, element);