Tester Stable
This commit is contained in:
parent
f25d3cc8da
commit
2fba0b1d53
17 changed files with 769 additions and 113 deletions
22
include/std.hpp
Normal file
22
include/std.hpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#define SHOW(variable) std::cout << #variable << " = " << (variable) << std::endl;
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define DEBUG
|
||||
#define ASSERT(condition, message) while(!(condition)) { std::cerr << "Assertion failed: " << #condition << "\n\t" << (message); exit(1); }
|
||||
#define FATAL_ASSERT(condition, message) ASSERT(condition, message)
|
||||
#else
|
||||
#define RELEASE
|
||||
#define FATAL_ASSERT(condition, message) ASSERT(condition, message) exit(1);
|
||||
#define ASSERT(condition, message) if(!(condition)) { std::cerr << "Assertion failed: " << #condition << "\nIn File: " << __FILE__ << "\nOn line: " << __LINE__ << "\n\t" << (message); }
|
||||
#endif
|
||||
|
||||
#include "types.hpp"
|
||||
#include "list.hpp"
|
||||
#include "flagman.hpp"
|
||||
|
||||
#ifdef DEBUG
|
||||
#include "Profiling/Timer.hpp"
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue