summaryrefslogtreecommitdiff
path: root/source/3rd-party/Luax/luax_state.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-25 23:46:59 +0800
committerchai <chaifix@163.com>2019-03-25 23:46:59 +0800
commit03b3b8ae80559745f98ef94569b421adddeb441f (patch)
tree7bf46892fef7453d4c25172333bd4fbddb29ee16 /source/3rd-party/Luax/luax_state.h
parent82956beb1fe17e1226327638c8ab22b5f5adfc1d (diff)
*misc
Diffstat (limited to 'source/3rd-party/Luax/luax_state.h')
-rw-r--r--source/3rd-party/Luax/luax_state.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/3rd-party/Luax/luax_state.h b/source/3rd-party/Luax/luax_state.h
index 564eba3..d675c7c 100644
--- a/source/3rd-party/Luax/luax_state.h
+++ b/source/3rd-party/Luax/luax_state.h
@@ -98,6 +98,7 @@ namespace Luax
void Push(lua_CFunction value);
void Push(void* data, size_t size);
void Push(const void* value);
+ void Push(std::string value);
///
/// idxʼnpushջidxᱻȡn
@@ -210,7 +211,7 @@ namespace Luax
};
//--------------------------------------------------------------------------------------------------------------
- // GetValue()ģʵ
+ // GetValue()ģػ
template <> bool LuaxState::GetValue < bool >(int idx, const bool value);
template <> cc8* LuaxState::GetValue < cc8* >(int idx, const cc8* value);
@@ -228,7 +229,7 @@ namespace Luax
template <> const void* LuaxState::GetValue < const void* >(int idx, const void* value);
//--------------------------------------------------------------------------------------------------------------
- // CheckParamģʵ
+ // CheckParamģػ
template <> bool LuaxState::CheckParam < bool >(int idx);
template <> cc8* LuaxState::CheckParam < cc8* >(int idx);
@@ -254,7 +255,7 @@ namespace Luax
if(!state.CheckParams(1, params)) return 0
#define LUAX_STATE(L) \
- LuaxState& state = LuaxRuntime::Get().GetLuaxState(L)
+ Luax::LuaxState& state = Luax::LuaxRuntime::Get().GetLuaxState(L)
}