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

Function dolibrary

third-party/lua-5.2.4/src/lua.c:224–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222
223
224static int dolibrary (lua_State *L, const char *name) {
225 int status;
226 lua_getglobal(L, "require");
227 lua_pushstring(L, name);
228 status = docall(L, 1, 1); /* call 'require(name)' */
229 if (status == LUA_OK)
230 lua_setglobal(L, name); /* global[name] = require return */
231 return report(L, status);
232}
233
234
235static const char *get_prompt (lua_State *L, int firstline) {

Callers 1

runargsFunction · 0.70

Calls 5

lua_getglobalFunction · 0.70
lua_pushstringFunction · 0.70
docallFunction · 0.70
lua_setglobalFunction · 0.70
reportFunction · 0.70

Tested by

no test coverage detected