summaryrefslogtreecommitdiff
path: root/util/assert.cpp
blob: 5b57d6790cae61c6321bcd97c76df29e9e95b8e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <exception>
#include <iostream>

#include "util/assert.h"

void ASSERT(bool cond, const char *msg)
{
    if (cond)
        return;
    std::cout << "Assertion failed: " << msg << "\n";
    std::terminate();
}