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:
avolkov
2006-08-08 22:39:51 +00:00
parent f5c15f10de
commit e043094eae
3 changed files with 9 additions and 0 deletions
+6
View File
@@ -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 */
+1
View File
@@ -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__)
+2
View File
@@ -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