Skip to content

Commit

Permalink
Revert "feat: Extend queryHelper condition to include all lua types"
Browse files Browse the repository at this point in the history
This reverts commit 15925a9.
  • Loading branch information
zhangjiequan committed Feb 18, 2024
1 parent 15925a9 commit e4bed6e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions emmy_debugger/src/debugger/emmy_debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,7 @@ void Debugger::GetVariable(lua_State *L, Idx<Variable> variable, int index, int
variable->valueType = type;


if (queryHelper && (type == LUA_TTABLE || type == LUA_TUSERDATA || type == LUA_TFUNCTION
|| type == LUA_TSTRING || type == LUA_TNUMBER || type == LUA_TLIGHTUSERDATA || type == LUA_TTHREAD
|| type == LUA_TNONE || type == LUA_TNIL || type == LUA_TBOOLEAN)) {
if (queryHelper && (type == LUA_TTABLE || type == LUA_TUSERDATA || type == LUA_TFUNCTION)) {
if (manager->extension.QueryVariable(L, variable, typeName, index, depth)) {
return;
}
Expand Down

0 comments on commit e4bed6e

Please sign in to comment.