language: C++ 4.7.2 (gcc-4.7.2)
date: 316 days 16 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdlib.h>
#include <stdio.h>
 
#ifndef NDEBUG
#  define my_assert(X) \
    do { \
      if ( (X) ) { } \
      else { \
        fprintf(stderr, "Failed assert(%s) in line %s:%d!\n", #X, __FILE__, __LINE__); \
        abort(); \
      } \
    } while (0)
#else
#  define my_assert(X) \
    do { \
      (void) (X); \
    } while (0)
#endif
 
int main(void) {
  char c = getc(stdin);
  my_assert (c == 'a');
  return 0;
}