diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-25 14:54:35 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-25 14:54:35 +0200 |
| commit | 30020c71ecaa0cac5d1604503dd2d9ecfe2d161d (patch) | |
| tree | f9bcdb10fd8fd734a04773a1d34b22bf7b375313 /src/core | |
| parent | 77e40cda81e373e8c974574813917f70928f038b (diff) | |
| download | nissy-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.h | 4 |
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 | ||
| 70 | STATIC uint8_t | 74 | STATIC uint8_t |
