(svn r9862) -Fix (9842): strgen's error() does return in contrast to OTTD's error().
authorrubidium
Thu, 17 May 2007 13:36:00 +0000
changeset 7129 60973c5cb78d
parent 7128 1f92a89c933e
child 7130 8299dcc2dd24
(svn r9862) -Fix (9842): strgen's error() does return in contrast to OTTD's error().
src/stdafx.h
--- a/src/stdafx.h	Thu May 17 12:06:47 2007 +0000
+++ b/src/stdafx.h	Thu May 17 13:36:00 2007 +0000
@@ -327,7 +327,10 @@
 # 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 */