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

Function getDebugSource

emmy_debugger/src/api/lua_api_loader.cpp:208–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208const char* getDebugSource(lua_Debug* ar)
209{
210 switch (luaVersion)
211 {
212 case LuaVersion::LUA_JIT:
213 case LuaVersion::LUA_51:
214 return ar->u.ar51.source;
215 case LuaVersion::LUA_52:
216 return ar->u.ar52.source;
217 case LuaVersion::LUA_53:
218 return ar->u.ar53.source;
219 case LuaVersion::LUA_54:
220 return ar->u.ar54.source;
221 case LuaVersion::LUA_55:
222 return ar->u.ar55.source;
223 default:
224 assert(false);
225 return nullptr;
226 }
227}
228
229const char* getDebugName(lua_Debug* ar)
230{

Callers 3

GetFileMethod · 0.50
StartMethod · 0.50
ProcessHookMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected