RT’s build logs show that do{}while(0) is better than functional programming
This commit is contained in:
6
sh.h
6
sh.h
@ -164,7 +164,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef EXTERN
|
#ifdef EXTERN
|
||||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.623 2012/12/28 03:35:34 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.624 2012/12/28 04:47:50 tg Exp $");
|
||||||
#endif
|
#endif
|
||||||
#define MKSH_VERSION "R41 2012/12/27"
|
#define MKSH_VERSION "R41 2012/12/27"
|
||||||
|
|
||||||
@ -503,9 +503,9 @@ char *ucstrstr(char *, const char *);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(DEBUG) || defined(__COVERITY__)
|
#if defined(DEBUG) || defined(__COVERITY__)
|
||||||
#define mkssert(e) ((e) ? (void)0 : exit(255))
|
#define mkssert(e) do { if (!(e)) exit(255); } while (/* CONSTCOND */ 0)
|
||||||
#else
|
#else
|
||||||
#define mkssert(e) ((void)0)
|
#define mkssert(e) do { } while (/* CONSTCOND */ 0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (!defined(MKSH_BUILDMAKEFILE4BSD) && !defined(MKSH_BUILDSH)) || (MKSH_BUILD_R != 419)
|
#if (!defined(MKSH_BUILDMAKEFILE4BSD) && !defined(MKSH_BUILDSH)) || (MKSH_BUILD_R != 419)
|
||||||
|
Reference in New Issue
Block a user