Function S2Loop.s2DebugOverride

Allows overriding the automatic validity checks controlled by the --s2debug flag. If this flag is true, then loops are automatically checked for validity as they are initialized. The main reason to disable this flag is if you intend to call IsValid() explicitly, like this:

void s2DebugOverride (
  s2.s2debug.S2Debug s2DebugOverride
) @property;
S2Loop loop;
loop.set_s2debug_override(S2Debug::DISABLE);
loop.Init(...);
if (!loop.IsValid()) { ... }

Without the call to set_s2debug_override(), invalid data would cause a fatal error in Init() whenever the --s2debug flag is enabled.

This setting is preserved across calls to Init() and Decode().