[fix] honor runtime settings for calling debugbreak, add compile option to disable

fixes #326
This commit is contained in:
Joao Paulo Magalhaes
2022-11-18 15:14:26 +00:00
parent 46ddd1513d
commit 1d89de32f6
3 changed files with 20 additions and 6 deletions

View File

@@ -139,7 +139,7 @@ struct CheckPredicate {
{
if (!report_check(file, line, nullptr, predicate))
{
C4_DEBUG_BREAK();
RYML_DEBUG_BREAK();
}
}
};
@@ -149,7 +149,7 @@ struct CheckPredicate {
#if !defined(CHECK)
/// a quick'n'dirty assertion to verify a predicate
#define CHECK(predicate) do { if(!report_check(__FILE__, __LINE__, #predicate, (predicate))) { C4_DEBUG_BREAK(); } } while(0)
#define CHECK(predicate) do { if(!report_check(__FILE__, __LINE__, #predicate, (predicate))) { RYML_DEBUG_BREAK(); } } while(0)
#endif
//-----------------------------------------------------------------------------