mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r9862) -Fix (9842): strgen's error() does return in contrast to OTTD's error().
This commit is contained in:
parent
aea6ef94bc
commit
c8a84628f6
|
@ -327,7 +327,10 @@ assert_compile(sizeof(uint8) == 1);
|
|||
# define Point OTTD_AMIGA_POINT
|
||||
#endif
|
||||
|
||||
#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__)
|
||||
#endif /* STRGEN */
|
||||
|
||||
#endif /* STDAFX_H */
|
||||
|
|
Loading…
Reference in New Issue