Skip to content
Snippets Groups Projects
Commit ceb8cc1b authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Add ABORT() to Debug header

parent c5638b6f
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
#include <iostream>
#include <sstream>
#include <map>
#include <cstdlib>
#ifdef NDEBUG
......@@ -24,6 +25,8 @@
#define LOGI(x) do { std::stringstream sst; sst << x; logI(sst.str()); } while (false)
#define ABORT(x) do { std::stringstream sst; sst << x; logI(sst.str()); abort(); } while (false)
enum class LogSubsystem {
PS,
F,
......@@ -116,6 +119,10 @@ protected:
worker_log(sst.str(), string);
}
inline void logE(const std::string& string) const {
log(Error, string);
}
inline void logI(const std::string& string) const {
log(Info, string);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment