Changeset - r6634:969e8729aa7a
[Not reviewed]
master
0 1 0
glx - 17 years ago 2007-05-17 20:00:45
glx@openttd.org
(svn r9865) -Fix (r9862): NOT_REACHED() and error() declarations are needed for strgen
1 file changed with 5 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/stdafx.h
Show inline comments
 
@@ -327,10 +327,12 @@ assert_compile(sizeof(uint8)  == 1);
 
# define Point OTTD_AMIGA_POINT
 
#endif
 

	
 
void
 
#ifndef STRGEN
 
/* In strgen error is not fatal and it doesn't use NOT_REACHED */
 
void NORETURN CDECL error(const char *str, ...);
 
/* In strgen error is not fatal and returns */
 
NORETURN
 
#endif /* STRGEN */
 
CDECL error(const char *str, ...);
 
#define NOT_REACHED() error("NOT_REACHED triggered at line %i of %s", __LINE__, __FILE__)
 
#endif /* STRGEN */
 

	
 
#endif /* STDAFX_H */
0 comments (0 inline, 0 general)