2 Commits

Author SHA1 Message Date
77695574aa fetch-all.sh 2024-05-18 13:38:27 +02:00
6da0f80d46 allow bug.h multiple inclusions (w/ different BUG_ON/WARN_ON values) 2024-05-18 13:37:23 +02:00
3 changed files with 6 additions and 2 deletions

2
brlib

Submodule brlib updated: 8ff163dcf5...7bedfddfba

3
scripts/fetch-all.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
git remote | xargs -n 1 git fetch -a

View File

@@ -352,11 +352,12 @@ bool pos_ok(const pos_t *pos, const bool strict)
/* force BUG_ON and WARN_ON */
# pragma push_macro("BUG_ON")
# pragma push_macro("WARN_ON")
# undef BUG_ON
# define BUG_ON
# pragma push_macro("WARN_ON")
# undef WARN_ON
# define WARN_ON
# include <bug.h>
/* pawns on 1st ot 8th rank */
error += warn_on((pos->bb[WHITE][PAWN] | pos->bb[BLACK][PAWN]) &