From c8a84628f62332739587c5e76c152295c1c78abe Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 17 May 2007 13:36:00 +0000 Subject: (svn r9862) -Fix (9842): strgen's error() does return in contrast to OTTD's error(). --- src/stdafx.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/stdafx.h b/src/stdafx.h index b86c9b4a4..ac85c0419 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -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 */ -- cgit v1.2.3-70-g09d2