opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
assertions.h File Reference
#include <liboscar/utilities/filename_extractor.h>
#include <liboscar/oscar_config.h>
#include <string_view>
Include dependency graph for assertions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  osc
 
namespace  osc::detail
 

Macros

#define OSC_ASSERT_ALWAYS(expr)    (static_cast<bool>(expr) ? static_cast<void>(0) : osc::detail::on_assertion_failure(#expr, static_cast<const char*>(__func__), osc::extract_filename(__FILE__), __LINE__))
 
#define OSC_ASSERT(expr)   OSC_ASSERT_ALWAYS(expr)
 

Functions

void osc::detail::on_assertion_failure (std::string_view failing_code, std::string_view function_name, std::string_view file_name, unsigned int file_line)
 

Macro Definition Documentation

◆ OSC_ASSERT

#define OSC_ASSERT (   expr)    OSC_ASSERT_ALWAYS(expr)

◆ OSC_ASSERT_ALWAYS

#define OSC_ASSERT_ALWAYS (   expr)     (static_cast<bool>(expr) ? static_cast<void>(0) : osc::detail::on_assertion_failure(#expr, static_cast<const char*>(__func__), osc::extract_filename(__FILE__), __LINE__))