/[ascend]/trunk/base/generic/utilities/ascConfig.h
ViewVC logotype

Diff of /trunk/base/generic/utilities/ascConfig.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 777 by johnpye, Tue Jul 18 04:40:08 2006 UTC revision 778 by johnpye, Tue Jul 18 05:10:03 2006 UTC
# Line 138  Line 138 
138  #endif  #endif
139    
140  /**  /**
141      Flag non-returning functions for GCC and Visual C++      Define 'NORETURN' to the appropriate compiler-specific flags
142        for a function that never returns
     Previously, see comments 'Needed to keep gcc from whining'  
143  */  */
144  #ifdef __GNUC__ /* GCC */  #ifdef __GNUC__
145  # define NORETURN __attribute__((noreturn))  # define NORETURN __attribute__((noreturn))
146  #elif defined(_MSC_VER) /* Visual C++ */  #elif defined(_MSC_VER)
147  # define NORETURN __declspec(noreturn)  # define NORETURN __declspec(noreturn)
148  #else  #else
149  # define NORETURN  # define NORETURN /* nothing */
150  #endif  #endif
151    
152  /**  /**

Legend:
Removed from v.777  
changed lines
  Added in v.778

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22