MCPcopy Create free account
hub / github.com/NetHack/NetHack / l_push_wid_hei_table

Function l_push_wid_hei_table

src/sp_lev.c:3049–3055  ·  view source on GitHub ↗

push a table on lua stack: {width=wid, height=hei} */

Source from the content-addressed store, hash-verified

3047
3048/* push a table on lua stack: {width=wid, height=hei} */
3049staticfn void
3050l_push_wid_hei_table(lua_State *L, int wid, int hei)
3051{
3052 lua_newtable(L);
3053 nhl_add_table_entry_int(L, "width", wid);
3054 nhl_add_table_entry_int(L, "height", hei);
3055}
3056
3057/* push a table on lua stack containing room data */
3058staticfn void

Callers 1

lspo_mapFunction · 0.85

Calls 1

nhl_add_table_entry_intFunction · 0.85

Tested by

no test coverage detected