Blame view

build1/epsilon-master/liba/include/assert.h 318 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  #ifndef LIBA_ASSERT_H
  #define LIBA_ASSERT_H
  
  #include "private/macros.h"
  
  #if DEBUG
  #define assert(e)  ((void) ((e) ? ((void)0) : __assert(#e, __FILE__, __LINE__)))
  #else
  #define assert(e) ((void)0)
  #endif
  
  LIBA_BEGIN_DECLS
  
  void __assert(const char * expression, const char * file, int line);
  
  LIBA_END_DECLS
  
  #endif