mirror of https://github.com/OpenTTD/OpenTTD
(svn r9865) -Fix (r9862): NOT_REACHED() and error() declarations are needed for strgen
parent
c8a84628f6
commit
5b74a6ab2f
|
@ -327,10 +327,12 @@ assert_compile(sizeof(uint8) == 1);
|
||||||
# define Point OTTD_AMIGA_POINT
|
# define Point OTTD_AMIGA_POINT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void
|
||||||
#ifndef STRGEN
|
#ifndef STRGEN
|
||||||
/* In strgen error is not fatal and it doesn't use NOT_REACHED */
|
/* In strgen error is not fatal and returns */
|
||||||
void NORETURN CDECL error(const char *str, ...);
|
NORETURN
|
||||||
#define NOT_REACHED() error("NOT_REACHED triggered at line %i of %s", __LINE__, __FILE__)
|
|
||||||
#endif /* STRGEN */
|
#endif /* STRGEN */
|
||||||
|
CDECL error(const char *str, ...);
|
||||||
|
#define NOT_REACHED() error("NOT_REACHED triggered at line %i of %s", __LINE__, __FILE__)
|
||||||
|
|
||||||
#endif /* STDAFX_H */
|
#endif /* STDAFX_H */
|
||||||
|
|
Loading…
Reference in New Issue