| 222 | |
| 223 | |
| 224 | static 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 | |
| 235 | static const char *get_prompt (lua_State *L, int firstline) { |
no test coverage detected