commit 30020c71ecaa0cac5d1604503dd2d9ecfe2d161d parent 77e40cda81e373e8c974574813917f70928f038b Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Fri, 25 Apr 2025 14:54:35 +0200 Give error when ( is not closed in NISS sequence Diffstat:
M | src/core/moves.h | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/core/moves.h b/src/core/moves.h @@ -65,6 +65,10 @@ STATIC bool are_lastmoves_singlecw(size_t n, const uint8_t [n]); VAR_B++; \ ARG_MOVE = VAR_MOVE_NOMOD + VAR_MOD; \ ARG_ACTION \ + } \ + if (VAR_IN_PARENTHESES) { \ + LOG("Mismatched '(' in move sequence\n"); \ + return RET_ERROR; \ } STATIC uint8_t