aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-25 14:54:35 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-25 14:54:35 +0200
commit30020c71ecaa0cac5d1604503dd2d9ecfe2d161d (patch)
treef9bcdb10fd8fd734a04773a1d34b22bf7b375313 /src/core
parent77e40cda81e373e8c974574813917f70928f038b (diff)
downloadnissy-core-30020c71ecaa0cac5d1604503dd2d9ecfe2d161d.tar.gz
nissy-core-30020c71ecaa0cac5d1604503dd2d9ecfe2d161d.zip
Give error when ( is not closed in NISS sequence
Diffstat (limited to 'src/core')
-rw-r--r--src/core/moves.h4
1 files changed, 4 insertions, 0 deletions
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]);
65 VAR_B++; \ 65 VAR_B++; \
66 ARG_MOVE = VAR_MOVE_NOMOD + VAR_MOD; \ 66 ARG_MOVE = VAR_MOVE_NOMOD + VAR_MOD; \
67 ARG_ACTION \ 67 ARG_ACTION \
68 } \
69 if (VAR_IN_PARENTHESES) { \
70 LOG("Mismatched '(' in move sequence\n"); \
71 return RET_ERROR; \
68 } 72 }
69 73
70STATIC uint8_t 74STATIC uint8_t

Generated with cgit - Back to sebastiano.tronto.net