summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-17 13:36:00 +0000
committerrubidium <rubidium@openttd.org>2007-05-17 13:36:00 +0000
commitb91ef256832fa24349d7ea1bd318d1a461a24ea4 (patch)
tree8df8f3b312ad1b499148fe13514ce98e27626a76 /src
parentc624eb04e74c4f78a988c74ec2e8c62bb3f35be2 (diff)
downloadopenttd-b91ef256832fa24349d7ea1bd318d1a461a24ea4.tar.xz
(svn r9862) -Fix (9842): strgen's error() does return in contrast to OTTD's error().
Diffstat (limited to 'src')
-rw-r--r--src/stdafx.h3
1 files changed, 3 insertions, 0 deletions
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 */