blob: 13b74d78da510efb1236f34ce83e2e8e0bba18bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "log.h"
#include <absl/strings/substitute.h>
#include <stdlib.h>
namespace gsrsup {
void Check(Log& log, bool condition, const char* condition_str,
const char* file, int line) {
if (!condition) {
log.Error(absl::Substitute("internal error ($0:$1): ", file, line),
condition_str);
exit(1);
}
}
} // namespace gsrsup
|