Skip to content

Commit 58c90ae

Browse files
committed
修复一个集成luajit时的调试bug
1 parent 4767a6f commit 58c90ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emmy_debugger/src/emmy_debugger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ bool Debugger::DoEval(std::shared_ptr<EvalContext> evalContext)
969969
// setup env
970970
#ifndef EMMY_USE_LUA_SOURCE
971971
lua_setfenv(L, fIdx);
972-
#elif EMMY_LUA_51
972+
#elif defined(EMMY_LUA_51) || defined(EMMY_LUA_JIT)
973973
lua_setfenv(L, fIdx);
974974
#else //52 & 53
975975
lua_setupvalue(L, fIdx, 1);

0 commit comments

Comments
 (0)