aboutsummaryrefslogtreecommitdiff
path: root/src/core/oriented_cube.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-07-28 13:52:00 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-07-28 13:52:00 +0200
commit7f24b27652ee6fa84e38f181cea57f319af0c204 (patch)
tree269b15baf20c2ae4ed3bb1fdb052340311aa1981 /src/core/oriented_cube.h
parent9b248f3b46d5dc0e9522ed264ef71e422a5bc5a5 (diff)
downloadnissy-core-7f24b27652ee6fa84e38f181cea57f319af0c204.tar.gz
nissy-core-7f24b27652ee6fa84e38f181cea57f319af0c204.zip
Make failed assert exit immediately
Diffstat (limited to 'src/core/oriented_cube.h')
-rw-r--r--src/core/oriented_cube.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/oriented_cube.h b/src/core/oriented_cube.h
index 2c86af0..5449204 100644
--- a/src/core/oriented_cube.h
+++ b/src/core/oriented_cube.h
@@ -56,8 +56,7 @@ applymoves(oriented_cube_t cube, const char *buf)
56 uint8_t m; 56 uint8_t m;
57 oriented_cube_t c, cinv; 57 oriented_cube_t c, cinv;
58 58
59 DBG_ASSERT(isconsistent(cube), ZERO_ORIENTED_CUBE, 59 DBG_ASSERT(isconsistent(cube), "move error: inconsistent cube\n");
60 "move error: inconsistent cube\n");
61 60
62 c = cube; 61 c = cube;
63 cinv = SOLVED_ORIENTED_CUBE; 62 cinv = SOLVED_ORIENTED_CUBE;

Generated with cgit - Back to sebastiano.tronto.net