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

Function pushnexttemplate

third-party/lua-5.3.5/src/loadlib.c:424–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422
423
424static const char *pushnexttemplate (lua_State *L, const char *path) {
425 const char *l;
426 while (*path == *LUA_PATH_SEP) path++; /* skip separators */
427 if (*path == '\0') return NULL; /* no more templates */
428 l = strchr(path, *LUA_PATH_SEP); /* find next separator */
429 if (l == NULL) l = path + strlen(path);
430 lua_pushlstring(L, path, l - path); /* template */
431 return l;
432}
433
434
435static const char *searchpath (lua_State *L, const char *name,

Callers 1

searchpathFunction · 0.70

Calls 1

lua_pushlstringFunction · 0.70

Tested by

no test coverage detected