Welcome to mirror list, hosted at ThFree Co, Russian Federation.

assert.hpp « tests - github.com/marian-nmt/Simple-WebSocket-Server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7d55ec7b588413e7f1d1968f9e6b9d5901898ab8 (plain)
1
2
3
4
5
6
7
8
9
#ifndef SIMPLE_WEB_ASSERT_HPP
#define SIMPLE_WEB_ASSERT_HPP

#include <cstdlib>
#include <iostream>

#define ASSERT(e) ((void)((e) ? ((void)0) : ((void)(std::cerr << "Assertion failed: (" << #e << "), function " << __func__ << ", file " << __FILE__ << ", line " << __LINE__ << ".\n"), std::abort())))

#endif /* SIMPLE_WEB_ASSERT_HPP */