MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / mkfuncname

Function mkfuncname

Source/Misc/lua/src/lua.c:13159–13167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13157
13158
13159static const char *mkfuncname (lua_State *L, const char *modname) {
13160const char *funcname;
13161const char *mark = strchr(modname, *LUA_IGMARK);
13162if (mark) modname = mark + 1;
13163funcname = luaL_gsub(L, modname, ".", LUA_OFSEP);
13164funcname = lua_pushfstring(L, POF"%s", funcname);
13165lua_remove(L, -2); /* remove 'gsub' result */
13166return funcname;
13167}
13168
13169
13170static int loader_C (lua_State *L) {

Callers 2

loader_CFunction · 0.85
loader_CrootFunction · 0.85

Calls 3

luaL_gsubFunction · 0.85
lua_pushfstringFunction · 0.85
lua_removeFunction · 0.85

Tested by

no test coverage detected