| 933 | } |
| 934 | |
| 935 | int dfhack_lua_viewscreen::do_render(lua_State *L) |
| 936 | { |
| 937 | auto self = get_self(L); |
| 938 | if (!self) return 0; |
| 939 | |
| 940 | lua_getfield(L, -1, "onRender"); |
| 941 | |
| 942 | if (lua_isnil(L, -1)) |
| 943 | { |
| 944 | Screen::clear(); |
| 945 | return 0; |
| 946 | } |
| 947 | |
| 948 | lua_pushvalue(L, -2); |
| 949 | lua_call(L, 1, 0); |
| 950 | return 0; |
| 951 | } |
| 952 | |
| 953 | int dfhack_lua_viewscreen::do_notify(lua_State *L) |
| 954 | { |
nothing calls this directly
no test coverage detected