MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / Check

Method Check

scintilla/src/ContractionState.cxx:262–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260// Debugging checks
261
262void ContractionState::Check() const {
263#ifdef CHECK_CORRECTNESS
264 for (int vline = 0; vline < LinesDisplayed(); vline++) {
265 const int lineDoc = DocFromDisplay(vline);
266 PLATFORM_ASSERT(GetVisible(lineDoc));
267 }
268 for (int lineDoc = 0; lineDoc < LinesInDoc(); lineDoc++) {
269 const int displayThis = DisplayFromDoc(lineDoc);
270 const int displayNext = DisplayFromDoc(lineDoc + 1);
271 const int height = displayNext - displayThis;
272 PLATFORM_ASSERT(height >= 0);
273 if (GetVisible(lineDoc)) {
274 PLATFORM_ASSERT(GetHeight(lineDoc) == height);
275 } else {
276 PLATFORM_ASSERT(0 == height);
277 }
278 }
279#endif
280}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected