Rename module to modules

This commit is contained in:
IlushaShurupov 2023-06-30 09:12:01 +03:00
parent 88511539ac
commit 7e9eb95186
14 changed files with 4 additions and 4 deletions

View file

@ -0,0 +1,26 @@
#include "Assert.hpp"
#include <cstdio>
#include <cstdlib>
using namespace tp;
void tp::_assert_(const char* exp, const char* file, int line) {
if (!exp) {
exp = "no info";
}
printf("\nERROR: Assertion Failure - %s -- %s:%i\n", exp, file, line);
#ifdef ENV_BUILD_DEBUG
DEBUG_BREAK(true);
#else
exit(1);
#endif
}
void tp::terminate(tp::alni code) {
exit((int)code);
}