GCS
0.2.3
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
src
gu_assert.h
1
// Copyright (C) 2007 Codership Oy <info@codership.com>
2
9
#ifndef _gu_assert_h_
10
#define _gu_assert_h_
11
12
#include "gu_log.h"
13
14
#ifndef DEBUG_ASSERT
15
#include <assert.h>
16
#else
17
#include <unistd.h>
18
#undef assert
19
20
#define assert(expr) if (!(expr)) { \
21
gu_fatal ("Assertion (%s) failed", __STRING(expr)); \
22
while(1) sleep(1); }
23
#endif
/* DEBUG_ASSERT */
24
25
#endif
/* _gu_assert_h_ */
Generated on Tue Sep 16 2014 09:07:35 for GCS by
1.8.7