(svn r12777) -Codechange: rename fatal() and error() in strgen, so it can always have the NORETURN attribute

This commit is contained in:
smatz
2008-04-18 21:33:21 +00:00
parent 8e49daf3e1
commit f32ecbcadb
3 changed files with 50 additions and 61 deletions

View File

@@ -309,13 +309,7 @@ assert_compile(sizeof(uint8) == 1);
#define CloseConnection OTTD_CloseConnection
#endif /* __APPLE__ */
#if !defined(STRGEN)
/* In strgen error is not fatal and returns */
void NORETURN CDECL error(const char *str, ...);
#else
void CDECL error(const char *str, ...);
#endif
void NORETURN CDECL error(const char *str, ...);
#define NOT_REACHED() error("NOT_REACHED triggered at line %i of %s", __LINE__, __FILE__)
#if defined(MORPHOS) || defined(__NDS__)