diff options
author | chai <chaifix@163.com> | 2019-03-31 14:34:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-03-31 14:34:40 +0800 |
commit | fb7ae1149a80a22c77014d0ece33f6f4b965b631 (patch) | |
tree | 41540b0962be735204eb50eef54bd30e9184234a /source/3rd-party/Luax/luax_state.cpp | |
parent | 8164adb15b76f537f8b6c78b9992786b61d61cc8 (diff) |
*misc
Diffstat (limited to 'source/3rd-party/Luax/luax_state.cpp')
-rw-r--r-- | source/3rd-party/Luax/luax_state.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/3rd-party/Luax/luax_state.cpp b/source/3rd-party/Luax/luax_state.cpp index 3eae1df..612f26e 100644 --- a/source/3rd-party/Luax/luax_state.cpp +++ b/source/3rd-party/Luax/luax_state.cpp @@ -314,7 +314,7 @@ namespace Luax lua_gettable(mState, idx); } - std::string LuaxState::GetField(int idx, cc8* key, cc8* value) + std::string LuaxState::GetField(int idx, cc8* key, cc8* default_value) { std::string str; if (this->GetFieldWithType(idx, key, LUA_TSTRING)) { @@ -322,12 +322,12 @@ namespace Luax lua_pop(mState, 1); } else { - str = value; + str = default_value; } return str; } - std::string LuaxState::GetField(int idx, int key, cc8* value) + std::string LuaxState::GetField(int idx, int key, cc8* default_value) { std::string str; if (this->GetFieldWithType(idx, key, LUA_TSTRING)) { @@ -335,7 +335,7 @@ namespace Luax lua_pop(mState, 1); } else { - str = value; + str = default_value; } return str; } |