/
Tias
/
UIToolkit
Обзор
Документация
Войти
/
Tias
/
UIToolkit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
include/utils/error.hpp
21 строка
427 B
Tias
add events definitions, work on window
13 июн 2025, 10:17
13 июн 2025, 10:17
65329da
Код
Авторство
О чём код?
#ifndef UTILS_ERROR_HPP_ #define UTILS_ERROR_HPP_ /* * Simply print error message to cerr thread, terminates glfw and exiting program with error code */ #include <GLFW/glfw3.h> #include <iostream> #include <sstream> namespace utils { struct error : std::stringstream { ~error() { std::cerr << "ERROR: " << str() << std::endl; glfwTerminate(); exit(1); } }; } // namespace utils #endif // !UTILS_ERROR_HPP_