mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +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
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
using namespace scripting;
|
||||
|
||||
static int l_toml_stringify(lua_State* L) {
|
||||
static int l_toml_stringify(lua::State* L) {
|
||||
auto value = lua::tovalue(L, 1);
|
||||
|
||||
if (auto mapptr = std::get_if<dynamic::Map_sptr>(&value)) {
|
||||
|
|
@ -16,7 +16,7 @@ static int l_toml_stringify(lua_State* L) {
|
|||
}
|
||||
}
|
||||
|
||||
static int l_toml_parse(lua_State* L) {
|
||||
static int l_toml_parse(lua::State* L) {
|
||||
auto string = lua::require_string(L, 1);
|
||||
auto element = toml::parse("<string>", string);
|
||||
auto value = std::make_unique<dynamic::Value>(element);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue