From 30020c71ecaa0cac5d1604503dd2d9ecfe2d161d Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 25 Apr 2025 14:54:35 +0200 Subject: Give error when ( is not closed in NISS sequence --- src/core/moves.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/moves.h b/src/core/moves.h index 008e928..5f48f8d 100644 --- 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 -- cgit v1.3