MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / mkfuncname

Function mkfuncname

other_src/lua/src/loadlib.cpp:406–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404
405
406static const char *mkfuncname (lua_State *L, const char *modname) {
407 const char *funcname;
408 const char *mark = strchr(modname, *LUA_IGMARK);
409 if (mark) modname = mark + 1;
410 funcname = luaL_gsub(L, modname, ".", LUA_OFSEP);
411 funcname = lua_pushfstring(L, POF"%s", funcname);
412 lua_remove(L, -2); /* remove 'gsub' result */
413 return funcname;
414}
415
416
417static int loader_C (lua_State *L) {

Callers 2

loader_CFunction · 0.70
loader_CrootFunction · 0.70

Calls 3

luaL_gsubFunction · 0.70
lua_pushfstringFunction · 0.70
lua_removeFunction · 0.70

Tested by

no test coverage detected