ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since 9129a84 was
9129a84,
checked in by Thierry Delisle <tdelisle@…>, 8 years ago
|
Implemented suspend and resume for coroutines (CtxSw? does nothing)
|
-
Property mode set to
100644
|
File size:
976 bytes
|
Rev | Line | |
---|
[f773f67] | 1 | // |
---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo |
---|
| 3 | // |
---|
| 4 | // The contents of this file are covered under the licence agreement in the |
---|
| 5 | // file "LICENCE" distributed with Cforall. |
---|
| 6 | // |
---|
| 7 | // assert -- |
---|
| 8 | // |
---|
| 9 | // Author : Thierry Delisle |
---|
| 10 | // Created On : Mon Nov 28 12:27:26 2016 |
---|
| 11 | // Last Modified By : Thierry Delisle |
---|
| 12 | // Last Modified On : Mon Nov 28 12:27:26 2016 |
---|
| 13 | // Update Count : 0 |
---|
| 14 | // |
---|
| 15 | |
---|
| 16 | #ifndef __ASSERT_H__ |
---|
| 17 | #define __ASSERT_H__ |
---|
| 18 | |
---|
| 19 | extern "C" { |
---|
| 20 | #include <assert.h> |
---|
| 21 | |
---|
| 22 | #define __STRINGIFY__(str) #str |
---|
| 23 | #define __VSTRINGIFY__(str) __STRINGIFY__(str) |
---|
[9129a84] | 24 | #define assertf(expr, fmt, ...) ((expr) ? ((void)2) : __assert_fail_f(__VSTRINGIFY__(expr), __FILE__, __LINE__, __PRETTY_FUNCTION__, fmt, ## __VA_ARGS__ )) |
---|
[f773f67] | 25 | |
---|
| 26 | void __assert_fail_f( const char *assertion, const char *file, unsigned int line, const char *function, const char *fmt, ... ) __attribute__((noreturn)); |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | #endif // __ASSERT_H__ |
---|
| 30 | |
---|
| 31 | // Local Variables: // |
---|
| 32 | // mode: c // |
---|
| 33 | // tab-width: 4 // |
---|
| 34 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.