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

Function mkfuncname

third-party/lua-5.1.5/src/loadlib.c:391–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389
390
391static const char *mkfuncname (lua_State *L, const char *modname) {
392 const char *funcname;
393 const char *mark = strchr(modname, *LUA_IGMARK);
394 if (mark) modname = mark + 1;
395 funcname = luaL_gsub(L, modname, ".", LUA_OFSEP);
396 funcname = lua_pushfstring(L, POF"%s", funcname);
397 lua_remove(L, -2); /* remove 'gsub' result */
398 return funcname;
399}
400
401
402static int loader_C (lua_State *L) {

Callers 2

loader_CFunction · 0.85
loader_CrootFunction · 0.85

Calls 3

luaL_gsubFunction · 0.70
lua_pushfstringFunction · 0.70
lua_removeFunction · 0.70

Tested by

no test coverage detected