MCPcopy Create free account
hub / github.com/DFHack/dfhack / get_opts

Function get_opts

plugins/burrow.cpp:228–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228static void get_opts(lua_State *L, int idx, bool &zlevel) {
229 if (lua_gettop(L) < idx)
230 return;
231 get_bool_field(L, idx, "zlevel", &zlevel);
232}
233
234static bool get_int_field(lua_State *L, int idx, const char *name, int16_t *dest) {
235 lua_getfield(L, idx, name);

Callers 1

flood_fillFunction · 0.85

Calls 2

lua_gettopFunction · 0.85
get_bool_fieldFunction · 0.70

Tested by

no test coverage detected