ADT
        aaron-thesis
        arm-eh
        ast-experimental
        cleanup-dtors
        deferred_resn
        demangler
        enum
        forall-pointer-decay
        jacob/cs343-translation
        jenkins-sandbox
        new-ast
        new-ast-unique-expr
        new-env
        no_list
        persistent-indexer
        pthread-emulation
        qualifiedEnum
        resolv-new
        with_gc
      
      
        
          | 
            Last change
 on this file since d7dc824 was             d9c44c3, checked in by Thierry Delisle <tdelisle@…>, 9 years ago           | 
        
        
          | 
             
Implemented coroutine for i386 and added coroutines to tests 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            1.1 KB
           | 
        
      
      
| Line |   | 
|---|
| 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 | #ifdef __CFORALL__
 | 
|---|
| 20 | extern "C" {
 | 
|---|
| 21 | #endif //__CFORALL__
 | 
|---|
| 22 | 
 | 
|---|
| 23 |         #include <assert.h>
 | 
|---|
| 24 | 
 | 
|---|
| 25 |         #ifdef NDEBUG
 | 
|---|
| 26 |                 #define assertf(expr, fmt, ...) ((void)0)
 | 
|---|
| 27 |         #else
 | 
|---|
| 28 |                 #define __STRINGIFY__(str) #str
 | 
|---|
| 29 |                 #define __VSTRINGIFY__(str) __STRINGIFY__(str)
 | 
|---|
| 30 |                 #define assertf(expr, fmt, ...) ((expr) ? ((void)0) : __assert_fail_f(__VSTRINGIFY__(expr), __FILE__, __LINE__, __PRETTY_FUNCTION__, fmt, ## __VA_ARGS__ ))
 | 
|---|
| 31 | 
 | 
|---|
| 32 |                 void __assert_fail_f( const char *assertion, const char *file, unsigned int line, const char *function, const char *fmt, ... ) __attribute__((noreturn));
 | 
|---|
| 33 |         #endif
 | 
|---|
| 34 |         
 | 
|---|
| 35 | #ifdef __CFORALL__
 | 
|---|
| 36 | } // extern "C"
 | 
|---|
| 37 | #endif //__CFORALL__
 | 
|---|
| 38 | 
 | 
|---|
| 39 | #endif // __ASSERT_H__
 | 
|---|
| 40 | 
 | 
|---|
| 41 | // Local Variables: //
 | 
|---|
| 42 | // mode: c //
 | 
|---|
| 43 | // tab-width: 4 //
 | 
|---|
| 44 | // End: //
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.