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

myassert.h « GIZA++-v2 - github.com/moses-smt/giza-pp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b648fdddc18d57df6e0e99e65fbb6f04d4877a51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef MY_ASSERT_DEFINED
#define MY_ASSERT_DEFINED
void myerror(int line,const char *file,const char *expression);
void imyerror(int line,const char *file,const char *expression);

#define iassert(expression) do {if (!(expression)) {imyerror(__LINE__,__FILE__,#expression);}} while (0)

#
#define massert(expr) do {} while(0)

#define vassert(expr) do {} while(0)

#include <cassert>

#endif