/*
    * CrashReport.cpp
    * Structured crash report implementation
    * Copyright (c) 2026 Daniel Hammer
*/

#include "CrashReport.hpp"

namespace CrashReport {

Report g_reports[MaxReports];
int g_reportHead = 0;
int g_reportCount = 0;

void AddReport(const Report& report) {
    g_reports[g_reportHead] = report;
    g_reportHead = (g_reportHead + 1) % MaxReports;
    if (g_reportCount < MaxReports) g_reportCount++;
}

} // namespace CrashReport
