mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-11-16 06:08:20 +00:00
make CHDIR macro work when NDEBUG is defined (and therefore the assert
is a null op).
This commit is contained in:
parent
37a13feeb9
commit
072c984053
@ -75,7 +75,7 @@ static u_short fts_stat __P((FTS *, FTSENT *, int));
|
||||
#define ISSET(opt) (sp->fts_options & opt)
|
||||
#define SET(opt) (sp->fts_options |= opt)
|
||||
|
||||
#define CHDIR(sp, path) (!ISSET(FTS_NOCHDIR) && assert(path!=NULL) && chdir(path))
|
||||
#define CHDIR(sp, path) (!ISSET(FTS_NOCHDIR) && (assert(path!=NULL), 1) && chdir(path))
|
||||
#define FCHDIR(sp, fd) (!ISSET(FTS_NOCHDIR) && fchdir(fd))
|
||||
|
||||
/* fts_build flags */
|
||||
|
Loading…
Reference in New Issue
Block a user