1#include "duckdb/common/assert.hpp"
2#include "duckdb/common/exception.hpp"
3
4namespace duckdb {
5
6void DuckDBAssertInternal(bool condition, const char *condition_name, const char *file, int linenr) {
7 if (condition) {
8 return;
9 }
10 throw InternalException("Assertion triggered in file \"%s\" on line %d: %s%s", file, linenr, condition_name,
11 Exception::GetStackTrace());
12}
13
14} // namespace duckdb
15