MCPcopy Index your code
hub / github.com/NetHack/NetHack / load_lua

Function load_lua

src/nhlua.c:2391–2411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2389}
2390
2391boolean
2392load_lua(const char *name, nhl_sandbox_info *sbi)
2393{
2394 boolean ret = TRUE;
2395 lua_State *L = nhl_init(sbi);
2396
2397 if (!L) {
2398 ret = FALSE;
2399 goto give_up;
2400 }
2401
2402 if (!nhl_loadlua(L, name)) {
2403 ret = FALSE;
2404 goto give_up;
2405 }
2406
2407 give_up:
2408 nhl_done(L);
2409
2410 return ret;
2411}
2412
2413DISABLE_WARNING_CONDEXPR_IS_CONSTANT
2414

Callers 2

wiz_load_luaFunction · 0.85
load_specialFunction · 0.85

Calls 3

nhl_initFunction · 0.85
nhl_loadluaFunction · 0.85
nhl_doneFunction · 0.85

Tested by

no test coverage detected