MCPcopy Create free account
hub / github.com/crawl/crawl / assert_valid_cursor_pos

Function assert_valid_cursor_pos

crawl-ref/source/libutil.cc:399–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399void assert_valid_cursor_pos()
400{
401 GotoRegion region(get_cursor_region());
402 coord_def pos(cgetpos(region));
403 ASSERTM(valid_cursor_pos(pos.x, pos.y, region),
404 "invalid cursor position %d,%d in region %d, should be %d,%d in region %d",
405 pos.x, pos.y, region, cgetpos(_find_correct_region()).x,
406 cgetpos(_find_correct_region()).y, _find_correct_region());
407}
408
409static GotoRegion _current_region = GOTO_CRT;
410

Callers 3

wrapcprint_skippingFunction · 0.85
print_statsFunction · 0.85
redraw_screenFunction · 0.85

Calls 4

valid_cursor_posFunction · 0.85
_find_correct_regionFunction · 0.85
get_cursor_regionFunction · 0.70
cgetposFunction · 0.70

Tested by

no test coverage detected