MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / getDebugCurrentLine

Function getDebugCurrentLine

emmy_debugger/src/api/lua_api_loader.cpp:166–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166int getDebugCurrentLine(lua_Debug* ar)
167{
168 switch (luaVersion)
169 {
170 case LuaVersion::LUA_JIT:
171 case LuaVersion::LUA_51:
172 return ar->u.ar51.currentline;
173 case LuaVersion::LUA_52:
174 return ar->u.ar52.currentline;
175 case LuaVersion::LUA_53:
176 return ar->u.ar53.currentline;
177 case LuaVersion::LUA_54:
178 return ar->u.ar54.currentline;
179 case LuaVersion::LUA_55:
180 return ar->u.ar55.currentline;
181 default:
182 assert(false);
183 return 0;
184 }
185}
186
187int getDebugLineDefined(lua_Debug* ar)
188{

Callers 6

GetStacksMethod · 0.50
GetFileMethod · 0.50
GetStackLevelMethod · 0.50
FindBreakPointMethod · 0.50
StartMethod · 0.50
ProcessHookMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected