- int generate_pawn_checks(const Position&, Bitboard, Square, MoveStack*, int);
+ inline MoveStack* generate_pawn_blocking_evasions(const Position& p, Bitboard np, Bitboard bs, MoveStack* m) {
+ return do_generate_pawn_blocking_evasions<WHITE, RANK_8, Rank3BB, DELTA_N>(p, np, bs, m);
+ }
+ template<>
+ inline MoveStack* generate_pawn_blocking_evasions<BLACK>(const Position& p, Bitboard np, Bitboard bs, MoveStack* m) {
+ return do_generate_pawn_blocking_evasions<BLACK, RANK_1, Rank6BB, DELTA_S>(p, np, bs, m);
+ }
+
+ // Template generate_pawn_checks() with specializations
+ template<Color, Color, Bitboard, Bitboard, SquareDelta>
+ MoveStack* do_generate_pawn_checks(const Position&, Bitboard, Square, MoveStack*);