LOG function and LOG_VALUE macro will save time and wrist exertion

This commit is contained in:
2024-12-01 10:56:30 -06:00
committed by Celtic Minstrel
parent a852090180
commit 6ea26ca423
2 changed files with 7 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
#define BOE_PCH
#include <string>
#include <iostream>
typedef unsigned short mon_num_t;
typedef signed short miss_num_t;
@@ -41,4 +42,10 @@ inline std::string bool_to_str(bool b) {
return b ? "true" : "false";
}
inline void LOG(std::string line) {
std::cout << line << std::endl;
}
#define LOG_VALUE(x) std::cout << #x << ": " << x << std::endl;
#endif