Function validateHitCounts

Synopsis

#include <src/easylogging++.h>

void validateHitCounts(std::size_t n)

Description

Validates hit counts and resets it if necessary.

Source

Lines 2076-2081 in src/easylogging++.h.

inline void validateHitCounts(std::size_t n) {
  if (m_hitCounts >= base::consts::kMaxLogPerCounter) {
    m_hitCounts = (n >= 1 ? base::consts::kMaxLogPerCounter % n : 0);
  }
  ++m_hitCounts;
}





Add Discussion

Log in to comment