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

Function dolibrary

other_src/lua/src/lua.cpp:146–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144
145
146static int dolibrary (lua_State *L, const char *name) {
147 lua_getglobal(L, "require");
148 lua_pushstring(L, name);
149 return report(L, docall(L, 1, 1));
150}
151
152
153static const char *get_prompt (lua_State *L, int firstline) {

Callers 1

runargsFunction · 0.70

Calls 3

lua_pushstringFunction · 0.70
reportFunction · 0.70
docallFunction · 0.70

Tested by

no test coverage detected