mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
refactor: complete 'lua' namespace use
This commit is contained in:
parent
90bc86408b
commit
913e5983b1
26 changed files with 370 additions and 359 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue