A WIP 3D game engine in C++ using OpenGL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
472 B

#include "errors.h"
void warning(std::string message, int line, std::string file) {
fmt::print("warn {} line {} of {}\n", message, line, file);
};
void error(std::string message, int line, std::string file) {
fmt::print("error {} line {} of {}\n", message, line, file);
throw std::exception();
};
void panic(std::string message, int line, std::string file) {
fmt::print("error {} line {} of {}\n", message, line, file);
throw std::exception();
};