add log
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
// include Log for every files
|
||||
#include "misc/Log.h"
|
||||
|
||||
namespace td {
|
||||
namespace game {
|
||||
|
||||
|
||||
15
include/misc/Log.h
Normal file
15
include/misc/Log.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#ifndef NDEBUG
|
||||
#define LOGD LOG
|
||||
#endif
|
||||
|
||||
namespace td {
|
||||
namespace utils {
|
||||
|
||||
void LOG(const std::string& msg);
|
||||
|
||||
} // namespace utils
|
||||
} // namespace td
|
||||
Reference in New Issue
Block a user