diff options
author | glx <glx@openttd.org> | 2007-05-17 20:00:45 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-05-17 20:00:45 +0000 |
commit | 91e638271c1bc25d1a82c7dd7282946441ea318b (patch) | |
tree | 1686c1b3b9afed085187ba7f31143315fb63a9b7 | |
parent | b91ef256832fa24349d7ea1bd318d1a461a24ea4 (diff) | |
download | openttd-91e638271c1bc25d1a82c7dd7282946441ea318b.tar.xz |
(svn r9865) -Fix (r9862): NOT_REACHED() and error() declarations are needed for strgen
-rw-r--r-- | src/stdafx.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/stdafx.h b/src/stdafx.h index ac85c0419..94c6da5ff 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -327,10 +327,12 @@ assert_compile(sizeof(uint8) == 1); # define Point OTTD_AMIGA_POINT #endif +void #ifndef STRGEN -/* In strgen error is not fatal and it doesn't use NOT_REACHED */ -void NORETURN CDECL error(const char *str, ...); -#define NOT_REACHED() error("NOT_REACHED triggered at line %i of %s", __LINE__, __FILE__) +/* In strgen error is not fatal and returns */ +NORETURN #endif /* STRGEN */ +CDECL error(const char *str, ...); +#define NOT_REACHED() error("NOT_REACHED triggered at line %i of %s", __LINE__, __FILE__) #endif /* STDAFX_H */ |