34 static std::map<std::string, std::string>
strings;
38 static void setLevel(
int l);
39 static int getLevel();
43 static void addString(std::string &label, std::string &data);
44 static std::string getString(std::string &str);
51 for (i = filepath.size() - 1; i != 0; i--)
53 if (filepath[i] ==
'\\' || filepath[i] ==
'/')
57 fn.reserve(filepath.size() - i);
58 for (
size_t s = i; s < filepath.size(); s++)
59 fn.push_back(filepath[s]);
64 #define __func__ __FUNCTION__
70 #if (defined DEBUG || defined _DEBUG)
71 #define _debug_exec(level, x) \
73 if (Debug::getLevel() >= level) \
78 #define _debug_exec_(x) x
80 #define _debug_msg(x, level) \
83 if (Debug::getLevel() >= level) \
84 std::cout << "#" << Debug::getFileName(__FILE__) << ":" << __LINE__ << ":" \
85 << __func__ << "#" << x << std::endl; \
88 #define _debug_msg_(x) \
91 if (Debug::getLevel() >= 5) \
92 std::cout << "#" << Debug::getFileName(__FILE__) << ":" << __LINE__ << ":" \
93 << __func__ << "#" << x << std::endl; \
97 #define _debug_msg(x, level) \
100 if (Debug::getLevel() >= level) \
101 std::cout << __func__ << ":" << Debug::getFileName(__FILE__) << ":" << __LINE__ \
102 << ": " << x << std::endl; \
105 #define _debug_msg_(x) \
108 if (Debug::getLevel() >= 5) \
109 std::cout << __func__ << ":" << Debug::getFileName(__FILE__) << ":" << __LINE__ \
110 << ": " << x << std::endl; \
116 #define _debug_msg(x, level)
117 #define _debug_msg_(x)
118 #define _debug_exec(level, x) ;
119 #define _debug_exec_(x) ;