Skip to content

Commit 21dc835

Browse files
committed
去掉错误代码
1 parent 328a375 commit 21dc835

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

emmy_debugger/src/emmy_debugger.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,15 @@ void Debugger::Attach(bool isMainThread)
8989
// 对于luajit来讲,没有办法获得他的mainstate(因为luajit没有lua5.2以上的mainstate伪索引,而且头文件在不同平台上要重新生成)
9090
// 很难正确的简单知道mainstate,所以mainL 这个变量对luajit并不指代mainState
9191

92-
if(luaVersion == LuaVersion::LUA_JIT)
93-
{
94-
int ret = lua_pushthread(mainL);
95-
if(ret != 1)
96-
{
97-
return;
98-
}
99-
}
92+
// if(luaVersion == LuaVersion::LUA_JIT)
93+
// {
94+
// int ret = lua_pushthread(mainL);
95+
// lua_pop(mainL, 1);
96+
// if(ret != 1)
97+
// {
98+
// return;
99+
// }
100+
// }
100101
if (isMainThread)
101102
{
102103
auto states = FindAllCoroutine(mainL);

0 commit comments

Comments
 (0)