##// END OF EJS Templates
Removed forgotten files form previous impl of VC, fixed wrong submodules...
Removed forgotten files form previous impl of VC, fixed wrong submodules init (was always erasing changes :( ) Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r9:b3317a5111ec
r31:dec007be0b03
Show More
debug.h
24 lines | 678 B | text/x-c | CLexer
#ifndef DEBUG_H
#define DEBUG_H
#include <string>
#include <iostream>
#include <typeinfo>
#include <assert.h>
template <class T, bool crash>
void SciQLopError(const std::string& message, int line, const std::string& file)
{
std::cerr << "Error in " << file << ", class:" << typeid(T).name() << ", line: " << line <<
std::endl << "Message: " << message << std::endl;
if constexpr(crash)
throw;
}
#ifdef SCIQLOP_CRASH_ON_ERROR
#define SCIQLOP_ERROR(CLASS, MESSAGE) SciQLopError<CLASS, true>(MESSAGE, __LINE__, __FILE__)
#else
#define SCIQLOP_ERROR(CLASS, MESSAGE) SciQLopError<CLASS, false>(MESSAGE, __LINE__, __FILE__)
#endif
#endif