VCCC  2024.05
VisualCamp Common C++ library
debug_assert.hpp File Reference
#include <cassert>

Go to the source code of this file.

Macros

#define VCCC_LINE_LOCATION_IMPL2(file, line)    "file: " file ", line " # line
 
#define VCCC_LINE_LOCATION_IMPL(file, line)    VCCC_LINE_LOCATION_IMPL2(file, line)
 
#define VCCC_LINE_LOCATION    VCCC_LINE_LOCATION_IMPL(__FILE__, __LINE__)
 
#define VCCC_DEBUG_ASSERT(expr)    assert(((void) "Assertion on " VCCC_LINE_LOCATION, expr))
 

Macro Definition Documentation

◆ VCCC_DEBUG_ASSERT

#define VCCC_DEBUG_ASSERT (   expr)     assert(((void) "Assertion on " VCCC_LINE_LOCATION, expr))

◆ VCCC_LINE_LOCATION

#define VCCC_LINE_LOCATION    VCCC_LINE_LOCATION_IMPL(__FILE__, __LINE__)

◆ VCCC_LINE_LOCATION_IMPL

#define VCCC_LINE_LOCATION_IMPL (   file,
  line 
)     VCCC_LINE_LOCATION_IMPL2(file, line)

◆ VCCC_LINE_LOCATION_IMPL2

#define VCCC_LINE_LOCATION_IMPL2 (   file,
  line 
)     "file: " file ", line " # line