From 3fe8c58257c809ba5b4aefaf1327fc3a4a8a3e2b Mon Sep 17 00:00:00 2001 From: smatz Date: Fri, 18 Apr 2008 21:33:21 +0000 Subject: (svn r12777) -Codechange: rename fatal() and error() in strgen, so it can always have the NORETURN attribute --- src/stdafx.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/stdafx.h') diff --git a/src/stdafx.h b/src/stdafx.h index 9b48a1d67..14d493879 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -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__) -- cgit v1.2.3-54-g00ecf