Skip to content

Commit

Permalink
clean debug codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gengyong committed Oct 30, 2021
1 parent 285ee46 commit 72bde67
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions luaaa.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ namespace LUAAA_NS
template<typename FTYPE, typename ...ARGS, std::size_t... Ns>
void LuaInvokeVoidImpl(lua_State* state, void* calleePtr, size_t skip, indices<Ns...>)
{
LUAAA_DUMP(state, "3");
(*(FTYPE*)(calleePtr))(LuaStack<ARGS>::get(state, Ns + 1 + skip)...);
}

Expand All @@ -467,7 +466,6 @@ namespace LUAAA_NS
template<typename TRET, typename FTYPE, typename ...ARGS, std::size_t... Ns>
TRET LuaInvokeImpl(lua_State* state, void* calleePtr, size_t skip, indices<Ns...>)
{
LUAAA_DUMP(state, "4");
return (*(FTYPE*)(calleePtr))(LuaStack<ARGS>::get(state, Ns + 1 + skip)...);
}

Expand Down Expand Up @@ -572,7 +570,6 @@ namespace LUAAA_NS
template<typename TCLASS, typename TRET, typename FTYPE, typename ...ARGS, std::size_t... Ns>
TRET LuaInvokeInstanceMemberImpl(lua_State* state, void* calleePtr, indices<Ns...>)
{
LUAAA_DUMP(state, "1");
return (LuaStack<TCLASS>::get(state, 1).**(FTYPE*)(calleePtr))(LuaStack<ARGS>::get(state, Ns + 2)...);
}

Expand All @@ -585,7 +582,6 @@ namespace LUAAA_NS
template<typename TCLASS, typename FTYPE, typename ...ARGS, std::size_t... Ns>
void LuaInvokeInstanceMemberVoidImpl(lua_State* state, void* calleePtr, indices<Ns...>)
{
LUAAA_DUMP(state, "2");
(LuaStack<TCLASS>::get(state, 1).**(FTYPE*)(calleePtr))(LuaStack<ARGS>::get(state, Ns + 2)...);
}

Expand Down

0 comments on commit 72bde67

Please sign in to comment.