noreturn gcc attr; from meep
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2402 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -171,5 +171,11 @@ typedef unsigned int wint_t;
|
||||
# define VPRINTF_FUNCTION(formatArg)
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__)
|
||||
# define _NORETURN __attribute__((noreturn))
|
||||
#else
|
||||
# define _NORETURN
|
||||
#endif
|
||||
|
||||
#endif /* _PORT_H */
|
||||
|
||||
|
||||
@@ -75,6 +75,7 @@ typedef DWORD (*PDWORDFUNC) (void);
|
||||
#define HIWORD(x) ((UWORD) ((DWORD) (x) >> 16))
|
||||
|
||||
|
||||
// To be moved to port.h:
|
||||
// _ALIGNED_ANY specifies an alignment suitable for any type
|
||||
// _ALIGNED_ON specifies a caller-supplied alignment (should be a power of 2)
|
||||
#if defined(__GNUC__)
|
||||
|
||||
@@ -34,6 +34,8 @@ extern void *HRealloc (void *p, int size);
|
||||
|
||||
extern int TFB_DEBUG_HALT;
|
||||
|
||||
static inline void explode (void) _NORETURN;
|
||||
|
||||
static inline void explode (void)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
|
||||
Reference in New Issue
Block a user