Adds further ext deps as-is binaries copies from customers env.
Qt6 Migration CI / migrate (push) Canceled after 0s
Qt6 Migration CI / migrate (push) Canceled after 0s
This commit is contained in:
3700 files changed
+2132394
No files matched your search
+21
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include "ddkit/utils/Logger.hpp"
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
#define DDKIT_THROW_ON_FALSE(cond) \
|
||||
if (!(cond)) { \
|
||||
/*raise(SIGTRAP); */ \
|
||||
std::string msg = std::string("Assertion \"" #cond "\" failed in ") + __FILE__ + ":" + std::to_string(__LINE__); \
|
||||
ddkit::log::fatal() << msg; \
|
||||
throw std::logic_error(msg); \
|
||||
}
|
||||
|
||||
#define DDKIT_THROW_ON_FALSE_INFO(cond, info) \
|
||||
if (!(cond)) { \
|
||||
/*raise(SIGTRAP);*/ \
|
||||
std::string msg = std::string("Assertion \"" #cond "\" failed in ") + __FILE__ + ":" + std::to_string(__LINE__); \
|
||||
ddkit::log::fatal() << msg << " :" << std::string(info); \
|
||||
throw std::logic_error(msg + " :" + std::string(info)); \
|
||||
}
|
||||
Reference in new issue
Block a user