#ifndef EXTENTION_DIAGNOSTICS_H #define EXTENTION_DIAGNOSTICS_H #include "editor/decl.h" #include "io/sysio.h" #include "pch.h" #include "utils/utils.h" #include "windows/decl.h" struct DiagnosticBox : Popup { std::vector warnings; DiagnosticBox() { this->hidden = true; } void clear() { this->warnings.clear(); } void render(std::vector &buffer, Coord size, Coord pos) override; void handle_click(KeyEvent, Coord) override { this->hidden = true; }; ~DiagnosticBox() {}; }; DiagnosticBox *init_diagnostic(); #endif