diff options
author | smatz <smatz@openttd.org> | 2008-04-18 21:33:21 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-04-18 21:33:21 +0000 |
commit | 3fe8c58257c809ba5b4aefaf1327fc3a4a8a3e2b (patch) | |
tree | d732eb31de7088d8bef31e9bf345a580cd7d41a2 /src/stdafx.h | |
parent | cd7536123b6a9d7edefd96c989d02effe94f29b3 (diff) | |
download | openttd-3fe8c58257c809ba5b4aefaf1327fc3a4a8a3e2b.tar.xz |
(svn r12777) -Codechange: rename fatal() and error() in strgen, so it can always have the NORETURN attribute
Diffstat (limited to 'src/stdafx.h')
-rw-r--r-- | src/stdafx.h | 8 |
1 files changed, 1 insertions, 7 deletions
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__) |